| Mirage Source http://miragesource.net/forums/ |
|
| Player on tile changes tile appearence http://miragesource.net/forums/viewtopic.php?f=210&t=155 |
Page 1 of 1 |
| Author: | Tosuxo [ Thu Jun 15, 2006 9:34 pm ] |
| Post subject: | Player on tile changes tile appearence |
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 |
|
| Author: | Misunderstood [ Thu Jun 15, 2006 11:56 pm ] |
| Post subject: | |
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 |
|
| Author: | Tosuxo [ Thu Jun 15, 2006 11:59 pm ] |
| Post subject: | |
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? |
|
| Author: | Misunderstood [ Fri Jun 16, 2006 12:16 am ] |
| Post subject: | |
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... 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. |
|
| Author: | Tosuxo [ Fri Jun 16, 2006 12:21 am ] |
| Post subject: | |
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...
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 |
|
| Page 1 of 1 | All times are UTC |
| Powered by phpBB® Forum Software © phpBB Group https://www.phpbb.com/ |
|