How do I do this? I'm making a scrolling game, and the ground isn't all one colour, so I can't use that block, and I really don't wanna have to put loads of "or"s in.
I figure it may work to make a list with all the terrains, and then just put:
<touching (item (Terrain_number) of [Terrains v])?>I'm pretty sure than wouldn't even work, but it'd still be useful to know how to get the terrain number for future reference.
Offline
I'm a little confused. Is the list a list of the names of the terrain sprites' names and the "terrain_number" the terrain you're currently standing on? In that case, something like
Round((X+x position)/480) should do it (you may have to adjust it to round down, or shift it with a constant).
Edit: P.S. if that's your idea, I think it is a great one
Last edited by MoreGamesNow (2012-03-01 16:33:32)
Offline
Yes, that's what I mean.
And thanks
Offline