Mirage Engine
Player on tile changes tile appearence - Printable Version

+- Mirage Engine (https://mirage-engine.uk/forums)
+-- Forum: Mirage Source (Nostalgia) (https://mirage-engine.uk/forums/forumdisplay.php?fid=61)
+--- Forum: Archive (2006-2011) (https://mirage-engine.uk/forums/forumdisplay.php?fid=18)
+---- Forum: Resources (https://mirage-engine.uk/forums/forumdisplay.php?fid=49)
+---- Thread: Player on tile changes tile appearence (/showthread.php?tid=125)



Player on tile changes tile appearence - Tosuxo - 15-06-2006

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


- Misunderstood - 15-06-2006

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


- Tosuxo - 15-06-2006

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?


- Misunderstood - 16-06-2006

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.


- Tosuxo - 16-06-2006

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