Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Player on tile changes tile appearence
#1
For example, in my game Monster Trainer, I want it so that you can like, walk into some hugely tall grass and when you're on the tile, it changes it to a different tile, so it looks like you're making it move.

I'm not sure where to start, make it a new layer maybe? I really don't know. And I suck at blt lol.

If anyone can give me some advice it would be greatly appreciated.

Thanks
Reply
#2
maybe make it a tile type? Then store data like the alternate tile in the data1/2/3 and maybe the time it should last and such
Reply
#3
Misunderstood Wrote:maybe make it a tile type? Then store data like the alternate tile in the data1/2/3 and maybe the time it should last and such

yeh, it's just the "which tile to replace with" stuff i really haven't got a clue with how to make lol

this would be a huge feature for people to have in thier game and will make it like more realistic... so like... if you walk on the grass it makes footmarks on that tile... maybe even make it so you can have footprints in the sand and stuff?
Reply
#4
Well you take the tile from the current editortilex and editortiley like is already done for the layers, then you put that variable in the data1 slot, set the type to tile_type_chanifingtileification ...or ya know...a simpler name...Tongue

then in the blttile sub,
if tile(x,y).type=tile_type_chanifingtileification then
blt with this tile
else
blt with mask tile
end if

you could also only show it if the player is halfway across the tile or stop showing it if they are halfway across the tile or something similar.
Reply
#5
Misunderstood Wrote:Well you take the tile from the current editortilex and editortiley like is already done for the layers, then you put that variable in the data1 slot, set the type to tile_type_chanifingtileification ...or ya know...a simpler name...Tongue

then in the blttile sub,
if tile(x,y).type=tile_type_chanifingtileification then
blt with this tile
else
blt with mask tile
end if

you could also only show it if the player is halfway across the tile or stop showing it if they are halfway across the tile or something similar.

i kinda get what you're saying lol, i mite try on a blank MSE and see how it goes.... lol thanks
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)