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.

Author
Message
Stefan p
16
Years of Service
User Offline
Joined: 2nd Nov 2008
Location: Online
Posted: 25th May 2009 00:31 Edited at: 25th May 2009 00:37
Well I am making a game for school and the main engine is done so know it is time for me to make a map editor. Since the game is a 2d side scroller, i have been thinking of ways i could place enemies and have their postitons recorded. I have a variable which keeps track of the side scrolling postitions and i thiught if i add the mouse's x i would have an image at the mouse'x and it base postition would world's x plus mouse's x. So confused, if you understand and can help please do.

Thanks, Stefan
Grog Grueslayer
Valued Member
19
Years of Service
User Offline
Joined: 30th May 2005
Playing: Green Hell
Posted: 25th May 2009 01:28
You may think your confused but it sounds like it'll work to me. You just need to know the maps upper left coordinate of the screen and add the current MOUSEX() to that to position your enemies. I'd add numbers 0 to 9 for different enemies so you just move the mouse where you want it and hit a number to place the enemy. It would also probably be a good idea to track the MOUSEY() position too... unless all your enemies will start at the same y coordinate.

Stefan p
16
Years of Service
User Offline
Joined: 2nd Nov 2008
Location: Online
Posted: 25th May 2009 02:15
I have the changing enemy numbers and y axis done it was just this that was confusing me.

Thanks, Stefan

Login to post a reply

Server time is: 2024-11-25 06:59:02
Your offset time is: 2024-11-25 06:59:02