Main Menu
  • Welcome to The RPG Maker Resource Kit.

[GM] Wait

Started by &&&&&&&&&&&&&, June 13, 2007, 09:11:17 PM

0 Members and 1 Guest are viewing this topic.

&&&&&&&&&&&&&

How do I make a "wait" command.... Like.

move left
wait X seconds
show message
wait X seconds

Like RPG maker's wait.
&&&&&&&&&&&&&&&&

biohazard

Like, stopping movement? freezing everything?

J-Crew

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.

Identity

You could always use alarms.

fadark

#4
or you could use the sleep command.
but it depends on why you need to "wait".

just so everyone knows, im 15 years old.

&&&&&&&&&&&&&

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
                     
&&&&&&&&&&&&&&&&

Lord Dante

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.

fadark

#7
for that, i would do this. (file is attached to this post)

just so everyone knows, im 15 years old.

&&&&&&&&&&&&&

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...
&&&&&&&&&&&&&&&&

fadark

#9
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

just so everyone knows, im 15 years old.

Lord Dante

can this work on GM7? my computer makes alot of the files I open (except arrow's, oddly) crash

Arrow

gmk will only open in GM7. ;8

Lord Dante

mkay, that's what I thought.

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