Okay so I'm making a simple game and the main aspect of the game I can't get working.
Basically I want some objects to move from the bottom of the screen to the top the them to delete, I have tried everything I can think of but i can not make it work(there will be multiple objects moving on screen at once, keep this in mind if you try and help). Anyway Thanks in advance for the help.
ID:155049
Oct 2 2011, 3:45 am
|
|
In response to Robertbanks2
|
|
That's helpful, although my brain won't allow me to code properly for some reason and I can't even get them to appear and it's annoying me.
|
In response to GreatFisher
|
|
Well, I don't know the details on what you want to do, so it's a bit difficult to help with that.
|
In response to Robertbanks2
|
|
No worries I figured it out.
|
Move()
if(y>=world.maxy)
del
else
..()
That will delete it after it reaches the top of the world. You could also use a different number, such as 10, or initial(y)+10 to kill it after it's moved 10 tiles.
All of this is object specific and the examples I gave can be used in a variety of ways, so that should cover anything you need it to do unless it's just incredibly fancy.