Hello,
I am trying to make a simple 2-D platformer, and I don't know how to make a working start button, or make it when the button is pressed, the levels show up. Also, when a player finishes a level, how do I get it to go to the next level?
Showing me a few relevant scripts for platformers would be greatly appreciated.
Sincerely,
X360GLaDOS
Offline
X360GLaDOS wrote:
Hello,
I am trying to make a simple 2-D platformer, and I don't know how to make a working start button, or make it when the button is pressed, the levels show up. Also, when a player finishes a level, how do I get it to go to the next level?
Showing me a few relevant scripts for platformers would be greatly appreciated.
Sincerely,
X360GLaDOS
First of all, hello X360GLaDOS and welcome to Scratch!
Secondly, when asking a question, you're supposed to make a new topic about it, not post it on existing topic, unless your question is relevant.
Moving on, about your second question, you could use this in your main character:
when gf clicked set [level v] to (0) forever if (touching [goal v]?) change [level v] by (1) broadcast [new level v] and wait end
when gf clicked hide
when [button v] clicked//A bit slower. set [level v] to (1) hide broadcast [new level v] and wait
When gf clicked//A bit faster. forever if <(touching [mouse pointer v]?) and (mouse down?)> set [level v] to (1) hide broadcast [new level v] and wait end
Last edited by ErnieParke (2012-12-13 20:11:07)
Offline
If you just want to make it where your other sprites begin responding when its clicked put:
when [sprite1] clicked broadcast [start v]Then after you finish, program it where it all starts with when i recieve start
Offline
download my mouse maze v.1.1 there is a startbutton and levels in, so you can see how I solved that
Offline