Hello
Guest
, please
login
or
register
.
Did you miss your
activation email
?
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length.
ZFGC
>
Resources
>
Coding
>
Check for how many steps? GM 7
« previous
next »
Pages: [
1
]
Go Down
Print
Author
Topic: Check for how many steps? GM 7 (Read 740 times)
0 Members and 1 Guest are viewing this topic.
Theforeshadower
Check for how many steps? GM 7
«
on:
April 19, 2009, 07:46:11 am »
Reputation: +12/-2
Offline
Gender:
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
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
Gender:
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
Theforeshadower
Re: Check for how many steps? GM 7
«
Reply #2 on:
April 19, 2009, 08:00:37 am »
Reputation: +12/-2
Offline
Gender:
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
Print
Pages: [
1
]
Go Up
« previous
next »
ZFGC
>
Resources
>
Coding
>
Check for how many steps? GM 7
Contact Us
|
Legal
|
Advertise Here
2013 © ZFGC, All Rights Reserved