Pages: 1
Hi all,
I'm working on a game for my class and need a letter tile to start at the top of the screen and fall down. At the moment, it keeps going off the screen but I want it to go back to another (random?) location at the top and start falling again until it's caught by the eater. Does anyone know how to do this?
Thanks in advance!
Offline
Hi eobcork! The script for this is actually very simple, right before your falling script, put this in,
when gf clicked forever if <(game still going) = [yes]>// Or however you want this to be hide set x to (pick random [-240] to [240]) set y to [180] show falling scripts //All of those scripts here endThis will allow you to have it fall to the bottom, go back up in a random spot, and fall again. The falling scripts include making the object go down, as well as ending the game, ect. Hope this helps!
Last edited by sonicfan12p (2012-08-22 12:11:14)
Offline
Hi sonicfan12p,
Thanks for the quick reply :-)
I tried using the above but I'm just wondering what you meant by the 'yes'? Am I also correct in thinking the red 'falling scripts' is the script I use to make it start at the top and fall down and that the 'game still going' is a variable?
Sorry about all the questions :-O I'm new to this and still trying to figure it all out!
Offline
eobcork wrote:
Hi sonicfan12p,
Thanks for the quick reply :-)
I tried using the above but I'm just wondering what you meant by the 'yes'? Am I also correct in thinking the red 'falling scripts' is the script I use to make it start at the top and fall down and that the 'game still going' is a variable?
Sorry about all the questions :-O I'm new to this and still trying to figure it all out!
'yes' = If the game is still running.
Yes.
Offline
eobcork wrote:
Hi sonicfan12p,
Thanks for the quick reply :-) I try!
I tried using the above but I'm just wondering what you meant by the 'yes'?As birdbyte said, it means the game is still going, so it doesn't keep running if someone were to win or lose the game. Am I also correct in thinking the red 'falling scripts' is the script I use to make it start at the top and fall down and that the 'game still going' is a variable?Yes to both questions.
Sorry about all the questions :-O I'm new to this and still trying to figure it all out!
That's fine, my answers are in red. Hope that helps!
Last edited by sonicfan12p (2012-08-22 12:50:12)
Offline
aaaaagh! It's doing my head in and thrown up another question, sorry!
Do I type in the yes beside the first 'forever, if game still playing = YES'? If not, how exactly or what exactly goes in there?
Offline
That's okay, You type it in in the right hand box on the = block, with the variable block in the left hand side, like this.
<(game still going) = [yes]>And then you insert this block into the if block.
Offline
Alright, good luck!
Offline
Good! I hope it turns out well for you, and be sure to post on show and tell when your projects done!
Offline
How do u just fall down? I need a quick answer!
Offline
Kickin3CHICKEN wrote:
How do u just fall down? I need a quick answer!
Posting a month after no activity in a thread, particularly when the question has already been resolved, is considered "necroposting" (posting on a "dead" thread). Also, posting your question on a thread already being used to answer another question makes the forums unorganized and generally hinders communication.
If you have a question, post it in a new thread
In answer to your question, there is no all-purpose way to "just fall down". When you post a new thread with your question, you should be as specific as possible. Should it fall down until it hits a certain sprite/color? Should it accelerate as it falls? etc.
Offline
Pages: 1