Discuss Scratch

mikuwuku2
Scratcher
1 post

HOW IN THE WORLD CAN I USE VARABLES FOR PLAYER MOVEMENT??????

So really i kinda no longer want to use these blocks now:
change x by (0)
change y by ()
or these:
glide () secs to x: (0) y: (0)
move () steps
so instead of using those i want to use variables. like these.
set [ v] to []
change [ v] by (0)
SO PLS HELP ME TO SWITCH.

Last edited by mikuwuku2 (Yesterday 20:07:14)

msztr
Scratcher
100+ posts

HOW IN THE WORLD CAN I USE VARABLES FOR PLAYER MOVEMENT??????

You will need to update the player x and y position at the end of every loop, or when the variables are updated
when green flag clicked
forever
change [x v] by (0)
change [y v] by (0)
... // all other code goes here
go to x: ((x)) y: ((y))
end

Click here to give me an internet!
Click here to go to the link of secrets…

⬇️ See below how to get Scratch 2.0 again ⬇️

My Best Projects



How to get Scratch 2.0
1. Download and install Adobe Flash HERE depending on your system (just the main program, not the debugger)
2. Download Scratch 2.0 HERE
3. Open the newly downloaded Scratch 2.0 with Adobe Flash!

Powered by DjangoBB