トピック
Jacob KulcakKid4

Timer-kind-of-function/command-thingy

I'm trying to figure out if there's a command that can count how many seconds pass from one activation point to another. This is kind of what I'm trying to do: IF-timer command-THEN SPSET, you know the rest. So in a way it's spawning a thing after a certain amount of time.
3そうだね
プレイ済み
返信[1]
親投稿
Jacob KulcakKid4
Also, if there is such a command, it would help tremendously with the kind of game I'm making. (Trying to keep it a secret) *spots J.P in the crowd* *Gives J.P a cold stare* you're the only one that knows about it... jk
0そうだね
プレイ済み
返信[2]
親投稿
Vanne SEGAWonders
What's going with that one discussion?
0そうだね
未プレイ
返信[3]
親投稿
Jacob KulcakKid4
?
0そうだね
プレイ済み
返信[4]
親投稿
Vanne SEGAWonders
The discussion Stephen made...
0そうだね
未プレイ
返信[5]
親投稿
Jacob KulcakKid4
Ummm... why not go to that post and ask there?
1そうだね
プレイ済み
返信[6]
親投稿
Vanne SEGAWonders
No...the last time i did something like that alot of people got mad...even when asking a simple question...and oh...i wish i didn't red the entire thing.....
0そうだね
未プレイ
返信[7]
親投稿
raimondz raimondzz
What you describe is like an event queue... like schedule some action after X second from a frame. Is that what you want? If so, then you need to make that feature by yourself. I made an event queue for my games but it's done on lowerdash. You can check it on a thread that I made on smilebasicsource.
0そうだね
プレイ済み
返信[8]
親投稿
*J.P.*[P]£ aj2003aj
a simple way to do it is by making a variable INC until it reaches a certain point, it wont be like spot on but it will wait the ammount of time, then once it is there make a timeout on it so after it spawns it will despawn after a while then respawn. like SPAWN=0 INC SPAWN,1 IF SPAWN==5000 THEN SPAWN_ITEM=TRUE IF SPAWN==10000 THEN SPAWN_ITEM=FALSE or something like that lol
0そうだね
プレイ済み
返信[9]
親投稿
Jacob KulcakKid4
So this is what I'm thinking I would do: @loop SPAWN=0 INC SPAWN IF SPAWN==600 (five minutes) THEN Spawn item (would be a DEF) And so and so. Basically what J.P did, but with a DEF.
0そうだね
プレイ済み
返信[10]
親投稿
Autz sonic-HD8765
SmileBASIC has two things: MAINCNT and MILLISEC. MAINCNT shows how many frames have passed since SmileBASIC was launched, while MILLISEC is the same, but display the milliseconds. What you could do is take the MILLISEC value at some time (call it OLD_M), and then do a loop to do a comparison with an updated MILLISEC (call it NEW_M) to have the actual seconds independently of framerate.
0そうだね
プレイ済み
返信[11]
親投稿
Autz sonic-HD8765
Something like this: OLD_M=MILLISEC WHILE 1 NEW_M=(MILLISEC-OLD_M) DIV 60 IF NEW_M==60 THEN '1 Minute 'Do stuff ENDIF WEND
1そうだね
プレイ済み
返信[12]
親投稿
deetranada precious1100
why are ya'll being nerds :–|
0そうだね
未プレイ
返信[13]
親投稿
*J.P.* DEV NEWPICY3
@Autz: hey thats useful! yeah.
0そうだね
未プレイ
返信[14]
親投稿
Jacob KulcakKid4
@Autz, that is a pretty good idea. I'll decide which technique to use once I'm doing it. @Mckenzie, because being a nerd is cool and fun. Nerds make the world go round! Think of all the stuff that you wouldn't have if it weren't for nerds.
2そうだね
プレイ済み
返信[15]
親投稿
Autz sonic-HD8765
@Jacob @Person(JP) I tested the algorithm and was pretty much copy & paste, and it works. What i miss on the original comment was that is NOT /DIV 60/ but /DIV 1000/ since 1000 milliseconds = 1 second.
0そうだね
プレイ済み
返信[16]
親投稿
*J.P.* DEV NEWPICY3
^thats what i thought^ anyways also couldn't have said it better @Jacob thing i made: Jαçöß (ot Jαçöь) anyways its 93° outside and im suuuuuuppppeeeerrrr hot.... (not that i wasn't hot before lol, just way more so now)
1そうだね
未プレイ
返信[17]
親投稿
deetranada precious1100
@jacob please shut up school is over for yall so lets start being stuipid until june 5,2017
0そうだね
未プレイ
返信[18]
親投稿
Autz sonic-HD8765
@mckenzie We are being "nerds" because math is what rule logic of the "programming world". Sprite movement and jumps? Math Distance between objects? Math Simple counters? Math Background displacement? Math Everything you see out there uses math.
2そうだね
プレイ済み
返信[19]
親投稿
Jacob KulcakKid4
@J.P, that sounds like Texas. I would know, wearing a t-shirt and shorts on Christmas Day. @Mckenzie, you wouldn't even be on miiverse if it weren't for "nerds". If nerds didn't exist, you wouldn't even be able to be "stupid"(just saying what you said), because nerds practically invented the word "comfort" and "lazy". @Autz, too true. Does this count as college credits? Lol
0そうだね
プレイ済み
返信[20]
親投稿
deetranada precious1100
so...you dont care that your a nerd @jacob :‹
0そうだね
未プレイ
返信[21]
親投稿
Jacob KulcakKid4
Well, when you're with your fellow "nerds" and someone walks by (mckenzie) and says "nerd", no. Nobody even says "nerd" anymore, so why should I care that you called me it? (It's nice to know that followers will come into a discussion and yell "NERD!")
1そうだね
プレイ済み
返信[22]
親投稿
Jacob KulcakKid4
For nothing*
0そうだね
プレイ済み
返信[23]
親投稿
deetranada precious1100
@jacob i honestly respect your opinion about nerds but i am not one of them because i have to go to summer school and i guess NERDS dont have to
0そうだね
未プレイ
返信[24]
親投稿
Jacob KulcakKid4
Umm, ok... just because you're a nerd, doesn't mean you're super smart... that, is all I have to say. I'm just going to close this now. *walks away*
0そうだね
プレイ済み