Paging James!

Make games! Discuss those games here.

Moderators: Bob the Hamster, marionline, SDHawk

Post Reply
User avatar
Lucier
Red Slime
Posts: 69
Joined: Sun Apr 13, 2008 2:13 am

Paging James!

Post by Lucier »

got a question for ya. i know you have this new slice feature, and i think it can somehow be used to help me out of a pickle. in Genesis the first town already uses all 3 layers and those tilesets are totally full. but i still have tons of animated tiles for the river in the town i want to add. is there a way to use the slices to add the animated water tiles to the town?
:D!!!
User avatar
Spoonweaver
Liquid Metal King Slime
Posts: 6247
Joined: Mon Dec 08, 2008 7:07 am
Location: Home
Contact:

Post by Spoonweaver »

I'm not James, but I might be able to help anyways.

That's not the best of ideas. Slices aren't Map based like map tiles, and NPCs. They are instead Screen based, like a text box or a menu. So, even though it is possible to do, I'm sure, it's most likely not the best plan.

I suggest using NPCs. Having an npc pace while in a boxed in area would allow you to basically make an animated tile. Or you could possibly use npcs as another tile type. If it's a non-moving tile, then 1 NPC could potentially be 4 different tiles. 1 for each direction. Of course I'd limit any NPC tiling to tiles that are suppose to be wall tiles. Otherwise, unwanted results could occur.
User avatar
New-Gen
Red Slime
Posts: 38
Joined: Sat May 02, 2009 1:09 pm
Location: South Africa

Post by New-Gen »

I know about the layers but whats this new slice feature?

Where can I find it in the OHR to check it out?
User avatar
Aeth
Slime Knight
Posts: 110
Joined: Tue Oct 23, 2007 3:06 am
Location: Atlanta, GA

Post by Aeth »

Lucier wrote:got a question for ya. i know you have this new slice feature, and i think it can somehow be used to help me out of a pickle. in Genesis the first town already uses all 3 layers and those tilesets are totally full. but i still have tons of animated tiles for the river in the town i want to add. is there a way to use the slices to add the animated water tiles to the town?
Yeah, I agree with Spoonweaver, it would probably be easier to use npcs to do that than use slices.
New-Gen wrote:I know about the layers but whats this new slice feature?

Where can I find it in the OHR to check it out?
Basically, slices are like a way of putting graphics on the screen. You can use them to put enemy graphics, attack graphics, empty text boxes, etc. anywhere you want on the screen. When they first came out in the nightly I used them to put this together using only slices and menus (don't plan on finishing it though).
User avatar
Mystic
Metal Slime
Posts: 322
Joined: Wed Jul 23, 2008 4:32 am

Post by Mystic »

so we can't use names with slices yet can we?

how do we refer to them? it looks like they are exactly what i need right now
User avatar
Newbie Newtype
Reigning Smash Champion
Posts: 1873
Joined: Mon Oct 15, 2007 9:44 pm

Post by Newbie Newtype »

Whoh, you used all of your layers already? That's a ton of tiles considering each layer can have a unique tileset now.

And I agree. Use NPCs, because heroes/other NPCs will be layered over them, while slices will be drawn above everything (slices are better for things like clouds, other kinds of precipitation, or other special effects that are related to a map that you want drawn above Layer 2). The only problem with using NPCs as tiles is that there's a 300 NPC limit (or so), so the river can't be too large.
Last edited by Newbie Newtype on Wed Jul 08, 2009 3:26 pm, edited 1 time in total.
<TheGiz> oh hai doggy, oh no that's the straw that broke tjhe came baclsb
User avatar
Mogri
Super Slime
Posts: 4598
Joined: Mon Oct 15, 2007 6:38 pm
Location: Austin, TX
Contact:

Post by Mogri »

Aeth wrote:Basically, slices are like a way of putting graphics on the screen. You can use them to put enemy graphics, attack graphics, empty text boxes, etc. anywhere you want on the screen. When they first came out in the nightly I used them to put this together using only slices and menus (don't plan on finishing it though).
What'd you do for the background? Is that maptiles or is it a bunch of rect slices?
User avatar
Aeth
Slime Knight
Posts: 110
Joined: Tue Oct 23, 2007 3:06 am
Location: Atlanta, GA

Post by Aeth »

Mystic wrote:so we can't use names with slices yet can we?

how do we refer to them? it looks like they are exactly what i need right now
Store them in a variable, like this:

Code: Select all

variable&#40;slice1, enemy1, enemy1_sprite&#41;
slice1 &#58;= create container&#40;320, 200&#41;
enemy1 &#58;= formation slot enemy&#40;1, 0&#41;
if&#40;enemy1 <> -1&#41; then&#40;
   enemy1_sprite &#58;= load medium enemy sprite&#40;get enemy appearance&#40;enemy1, enemy&#58;picture&#41;, get enemy appearance&#40;enemy1, enemy&#58;palette&#41;&#41;
   set parent&#40;enemy1_sprite, battle_slice&#41;
end
Moogle1 wrote:What'd you do for the background? Is that maptiles or is it a bunch of rect slices?
Oh, yeah, forgot that the background is maptiles.
Last edited by Aeth on Wed Jul 08, 2009 3:35 pm, edited 1 time in total.
User avatar
Bob the Hamster
Liquid Metal King Slime
Posts: 7460
Joined: Tue Oct 16, 2007 2:34 pm
Location: Hamster Republic (Ontario Enclave)
Contact:

Re: Paging James!

Post by Bob the Hamster »

Lucier wrote:got a question for ya. i know you have this new slice feature, and i think it can somehow be used to help me out of a pickle. in Genesis the first town already uses all 3 layers and those tilesets are totally full. but i still have tons of animated tiles for the river in the town i want to add. is there a way to use the slices to add the animated water tiles to the town?
Sounds like using slices in that way would be way more trouble than it is worth.

TMC was going to add a 4th map layer before the next stable release.

The ultimate plan is that you will be able to have however many layers you need, and you will be able to decide which ones are underneath and which ones are overhead... but I don't know how long it will take to get that implemented.

We have also talked about allowing bigger tilesets, but the disadvantage of that is that it will double the filesize of all maps, so we might not do that at all, especially if extra layers work out well.

For people who are interested in learning more about slices, I posted a couple tutorials for them on the mailing list. You can find links to them here: <a href="http://gilgamesh.hamsterrepublic.com/wi ... lotsclices tutorial</a>

Also you can look in the plotscripting dictionary at the list of <a href="http://hamsterrepublic.com/ohrrpgce/doc ... ons">Slice Functions</a>, although I admit there are a lot of them, and they can seem overwhelming.

I also uploaded a couple slice test files with hss source <a href="http://www.slimesalad.com/forum/viewtop ... 0">here</a>. Although they aren't designed as teaching tools, they do give an idea of the many things slices can do, and they may instructional to the more advanced scripters who can figure them out.
User avatar
Mystic
Metal Slime
Posts: 322
Joined: Wed Jul 23, 2008 4:32 am

Post by Mystic »

the past two posts are awesome and i have a lot of work to do

also even just a fourth layer would make things awesome. but yeah "infinite" layers eventually would be nice
Post Reply