How do I make a "wait" command.... Like.
move left
wait X seconds
show message
wait X seconds
Like RPG maker's wait.
Like, stopping movement? freezing everything?
I'm pretty sure that there isn't a wait command in gamemaker. What I do for a wait alternate is make a piece of code in the step event of an object I need a wait for. In the code I put:
if (activation variable)
if self.wait = # // desired wait count
{action self.wait = 0}
else
{self.wait += 1}
you set the desired wait count to how long you want the variable to be wait until initiating the action. You also need to set an activation variable to a certain number so that you know a wait is initiated...it's a bit of a pain but I can assure you it works. If your confused about any of this just ask. Hope ths helps.
You could always use alarms.
or you could use the sleep command.
but it depends on why you need to "wait".
X-0
I don't get any of what you are all saying, I want my ship to wait 5 seconds before it can fire agian...
press space - creat object bullet
wait five seconds
ok, i know nothing about GM and know this can be done.
Read the help file. Go to...I think it's under the create object tab in help, and it should at least mention a time delay option there.
for that, i would do this. (file is attached to this post)
Quote from: fadark on July 11, 2007, 01:59:43 AM
for that, i would do this. (file is attached to this post)
Thanks, now I just need to know how to make the enemies shoot back...
ok, ill post a new version of that soon, to help you with that. :D
[edit]
ok, im done! ;)
here are the new additions:
-you can now move, left and right
-the enemies shoot you
-you get 5 lives
-there is a new, scrolling background
-new graphics
the file is attached to this post.
i hope this helps! ;D
can this work on GM7? my computer makes alot of the files I open (except arrow's, oddly) crash
gmk will only open in GM7. ;8
mkay, that's what I thought.
Did you ever get my PM? Hm. oh well.