Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

AppGameKit/AppGameKit Studio Showcase / Here is an editor that I use constantly to make my rooms.

Author
Message
3d point in space
10
Years of Service
User Offline
Joined: 30th Jun 2009
Location: Idaho
Posted: 21st Dec 2011 00:46 Edited at: 21st Dec 2011 00:47
the editor


Go through yourself at a wall.

Attachments

Login to view attachments
3d point in space
10
Years of Service
User Offline
Joined: 30th Jun 2009
Location: Idaho
Posted: 21st Dec 2011 00:48 Edited at: 21st Dec 2011 00:49
here is some more


Go through yourself at a wall.

Attachments

Login to view attachments
3d point in space
10
Years of Service
User Offline
Joined: 30th Jun 2009
Location: Idaho
Posted: 21st Dec 2011 01:04 Edited at: 21st Dec 2011 01:11
It is actually very easy to develop an room editor simular to this.

i use the following to make it possible

then load some images
exp.

ect.

then make a loop that clones the most used sprite in my case it is the floor.

know you got to test if the user selected one of the pictures or not thats not too hard.

exp 1.


ok you got the picture selected know it is time to select the floor.

exp 2.


know you have the floor peice and the sprite you selected it is time to do a case select



know comes the little tricky part you need to use the information from exp 2. to place the new sprite at the current location.



The sprite should goto the current location base upon your math. Adding one other rotation to the current sprite is not that hard all that I do it every time you click on a tile g_iRot rotates by.

g_iRot=g_iRot+90;

download the txt to see the hole program. Remember that sprites That I use are mostly 50 by 50.

Go through yourself at a wall.

Attachments

Login to view attachments

Login to post a reply

Server time is: 2019-10-18 21:56:33
Your offset time is: 2019-10-18 21:56:33