Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » character movement and multiplayer
- dominator202
-
82 posts
character movement and multiplayer
https://scratch.mit.edu/projects/318934398/
Hi, guys here's my new game, I need help with character movement, does anyone know an efficient way to make my sprite move without going through anything or going through the floor. I also want it to jump.
my wish is to make this multiplayer, does anyone know how,? and yes I have cloud variables. I want it so that people can be in the same game together either versing or as a team.
thanks
Hi, guys here's my new game, I need help with character movement, does anyone know an efficient way to make my sprite move without going through anything or going through the floor. I also want it to jump.
my wish is to make this multiplayer, does anyone know how,? and yes I have cloud variables. I want it so that people can be in the same game together either versing or as a team.
thanks
- imfh
-
1000+ posts
character movement and multiplayer
I would check out this platformer tutorial by @griffpatch_tutor: https://scratch.mit.edu/projects/67727504/
Cloud variables are a bit tricky since they can only hold numbers. Here's a project by @deck26 that might give you an idea of how cloud multiplayer works: https://scratch.mit.edu/projects/77775784/
Cloud variables are a bit tricky since they can only hold numbers. Here's a project by @deck26 that might give you an idea of how cloud multiplayer works: https://scratch.mit.edu/projects/77775784/
- 098765432154321
-
500+ posts
character movement and multiplayer
Movement:
It is extremely complicated to use multiplayer. Yes, it can be achieved using cloud data, but holy fuzzy how much it does take to code all of that.
when green flag clicked
forever
if <<key [any v] pressed?>> then
set [divide v] to [3] // can be any number depending on how much delay you need
repeat (2) // change the number to the what the divide variable holds minus 1
set [x velocity v] to ((number) / (divide)) // "number" does not need to be a variable, however it can be changed
change x by (x velocity)
change [divide v] by (-1)
end
repeat until <not <key [any v] pressed?>>
change x by (x velocity)
end
repeat (2) // change the number to the what the divide variable holds minus 1
set [x velocity v] to ((number) / (divide)) // "number" does not need to be a variable, however it can be changed
change x by (x velocity)
change [divide v] by (1)
end
set [x velocity v] to [0]
end
end
It is extremely complicated to use multiplayer. Yes, it can be achieved using cloud data, but holy fuzzy how much it does take to code all of that.
- EnderDragon_2578
-
2 posts
character movement and multiplayer
what does number equal?
#confused emoji
#confused emoji
- Discussion Forums
- » Help with Scripts
-
» character movement and multiplayer