Hi,
I am making a game, and I'm having a bit of difficulty because there is a train, but you have to collect the train tickets to get on the train. I was wondering if it is possible to do this on Scratch v 1.4.
Thank you if you can help.
Offline
This is certainly possible. Have a variable, called something like "tickets" Then whenever a ticket is collected, change the variable by 1. When the player gets to the train, only allow them to board if the variable "tickets" is equal to the number needed.
Offline
Thanks! Now I can continue!
Offline
You can also use broadcasting messages, so when you collect a ticket on Stage 1 it will broadcast "Ticket S1" and then for the train "When I receive Ticket S1 ~ When touching maincharacter ~ broadcast "go to stage 2 or i will murder you"". A more complicated alternative is (for the train)"When flag clicked switch to costume costume1 ~When I receive TicketS1 ~ switch to costume costume2 (#the same thing) ~ When touching maincharacter ~ if costume #=2 broadcast "go to stage 2 or i will murder you" else move 0 steps (or any other thing that doesn't affect anything)". Broadcasting messages can also be used for switching stages, as in my example script.
Also, mwagwagwagwagwa I know what lackofslackness is creating! Because I spy on him!
__________________________________________(fake)
I will be a Great Person <forever>
... Dr Deadpebble, I presume?
Offline