ZFGC

Resources => Coding => Topic started by: Theforeshadower on April 19, 2009, 07:46:11 am

Title: Check for how many steps? GM 7
Post by: Theforeshadower on April 19, 2009, 07:46:11 am
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).
Title: Re: Check for how many steps? GM 7
Post by: King Tetiro on April 19, 2009, 07:53:33 am
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.
Title: Re: Check for how many steps? GM 7
Post by: Theforeshadower on April 19, 2009, 08:00:37 am
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.

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