Hello Guest, please login or register.
Did you miss your activation email?
Login with username, password and session length.

Pages: [1]   Go Down

Author Topic: Check for how many steps? GM 7  (Read 733 times)

0 Members and 1 Guest are viewing this topic.
Check for how many steps? GM 7
« on: April 19, 2009, 07:46:11 am »
  • *
  • Reputation: +12/-2
  • Offline Offline
  • Gender: Male
  • Posts: 4849
Is there a way besides using an alarm to check to see how many steps have gone by?

Like say you only want an object to be created ever 4 steps while the player is shooting(ie holding down control).
Logged
  • Super Fan Gamers!

King Tetiro

Leader of Phoenix Heart
Re: Check for how many steps? GM 7
« Reply #1 on: April 19, 2009, 07:53:33 am »
  • *
  • Reputation: +0/-0
  • Offline Offline
  • Gender: Male
  • Posts: 3549
Declare this in thr create event.

crtetmr (Create Tmr. I shortened it for convience)

Then in the step event.

crtetmr+=1 if crtetmr>3{crtetmr=0 instance_create(x,y,Obj)}

Hope this helps.
Logged
  • Phoenix Heart
Re: Check for how many steps? GM 7
« Reply #2 on: April 19, 2009, 08:00:37 am »
  • *
  • Reputation: +12/-2
  • Offline Offline
  • Gender: Male
  • Posts: 4849
Nevermind, I was being a retard and forgot something so stupid.

Thanks for the help anyway.  I got it to do what I want it to do.

Lock plz.
Logged
  • Super Fan Gamers!
Pages: [1]   Go Up

 


Contact Us | Legal | Advertise Here
2013 © ZFGC, All Rights Reserved



Page created in 0.033 seconds with 44 queries.

anything