Posted By
|
Message
|
Red Crystal
Registered 18/08/2003
Points 53
|
31st August, 2003 at 19:10:55 -
Hi guys,
just a quick question... I'd apprecciate any help greatly!
I'm making a map editor... your default tile is 'grass terrain'. OK in step-through, when I finish laying grass tiles with windows cursor and click on (for example) the 'ice terrain' tile. How do make it so that when you lay tiles they are now ice?
Thanks in advance!
Please tell me how to do it exactly via step through.
"Lol, Classic Ashman" © Me 2002
|
Kirby Smith Resident Slacker
Registered 18/05/2003
Points 479
|
31st August, 2003 at 23:40:29 -
Have a counter that determines what kind of tile is to be laid down. When you select Ice Tile, set the counter to whatever value corresponds to ice. Now, set it up so that when the user clicks in the map editor, it sets down the tile that corresponds to the value of the counter. For example.
- User clicks on Ice Tile
Set Counter = 2
- User clicks on Map Tile
+ Counter = 2
Create Ice Tile.
Obviously, you would need some additional code to set up whatever kind of grid you are using, but you shouldn't find that too difficult. If you need more help, just ask and I'm sure somebody will clarify.
XBL Gamertag: Rampant Mjolnir
|
Assault Andy Administrator
I make other people create vaporware
Registered 29/07/2002
Points 5686
|
1st September, 2003 at 01:33:01 -
You can't do everything in the step trough editor, because some code isn't asked for. Also for saving maps, you should use an array.
-Andy
Creator of Faerie Solitaire:
http://www.create-games.com/download.asp?id=7792
Also creator of ZDay20 and Dungeon Dash.
http://www.Jigxor.com
http://twitter.com/JigxorAndy
|
|
|