The RPG Maker Resource Kit

Other Game Creation => Other Game Making Programs => Topic started by: &&&&&&&&&&&&& on June 13, 2007, 09:11:17 PM

Title: [GM] Wait
Post by: &&&&&&&&&&&&& on June 13, 2007, 09:11:17 PM
How do I make a "wait" command.... Like.

move left
wait X seconds
show message
wait X seconds

Like RPG maker's wait.
Title: Re: Wait
Post by: biohazard on June 14, 2007, 12:41:30 AM
Like, stopping movement? freezing everything?
Title: Re: Wait
Post by: J-Crew on June 14, 2007, 12:53:40 AM
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.
Title: Re: Wait
Post by: Identity on June 14, 2007, 01:27:03 AM
You could always use alarms.
Title: Re: Wait
Post by: fadark on July 10, 2007, 09:26:30 PM
or you could use the sleep command.
but it depends on why you need to "wait".
Title: Re: Wait
Post by: &&&&&&&&&&&&& on July 10, 2007, 10:35:46 PM
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
                     
Title: Re: Wait
Post by: Lord Dante on July 11, 2007, 01:54:19 AM
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.
Title: Re: Wait
Post by: fadark on July 11, 2007, 01:59:43 AM
for that, i would do this. (file is attached to this post)
Title: Re: Wait
Post by: &&&&&&&&&&&&& on July 11, 2007, 04:05:27 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...
Title: Re: Wait
Post by: fadark on July 11, 2007, 04:47:34 PM
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
Title: Re: Wait
Post by: Lord Dante on July 11, 2007, 09:14:53 PM
can this work on GM7? my computer makes alot of the files I open (except arrow's, oddly) crash
Title: Re: Wait
Post by: Arrow on July 11, 2007, 09:37:14 PM
gmk will only open in GM7. ;8
Title: Re: Wait
Post by: Lord Dante on July 11, 2007, 09:48:40 PM
mkay, that's what I thought.

Did you ever get my PM? Hm. oh well.