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.

Newcomers DBPro Corner / keeps elimenating new sprite?

Author
Message
Acolyte Entertainment
19
Years of Service
User Offline
Joined: 28th Dec 2004
Location: Oregon, US
Posted: 25th Jan 2006 06:21 Edited at: 25th Jan 2006 06:25
hey. im trying to make a simple level editor. but whenever it clicks it removes my last placed wall. how do i make it so it keeps the walls that where placed. here is my code:



thanks in advanced,
-=Snowfall Studios=-

Grog Grueslayer
Valued Member
19
Years of Service
User Offline
Joined: 30th May 2005
Playing: Green Hell
Posted: 25th Jan 2006 07:06 Edited at: 25th Jan 2006 07:08
The for/next loop goes too fast. It should be more like this:



The code snip above starts "boxes" at 1 and increases once everytime the mouse button is clicked. Having the sprite command before the if/then to check for the mouseclick gives you the same ability without having to put in another sprite command. I also put a timer in to slow it down... without it the number of sprites go through the roof.


Acolyte Entertainment
19
Years of Service
User Offline
Joined: 28th Dec 2004
Location: Oregon, US
Posted: 25th Jan 2006 16:31
thanks grog!

Grog Grueslayer
Valued Member
19
Years of Service
User Offline
Joined: 30th May 2005
Playing: Green Hell
Posted: 25th Jan 2006 19:59
Np.


Login to post a reply

Server time is: 2024-09-24 15:28:50
Your offset time is: 2024-09-24 15:28:50