Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » How do you make smooth camera x and y movement?
- ObjectRhythm
-
Scratcher
18 posts
How do you make smooth camera x and y movement?
Alright so I'm making an Rhythm Game Parappa styled game, and the camera moves to the player or the enemy whenever it's either ors turn.
I already have the basic camera x and y code for the stage and characters,

(example)
How do I make the camera smoothly move around? Kinda like a smooth glide but with the whole camera
I already have the basic camera x and y code for the stage and characters,

(example)
How do I make the camera smoothly move around? Kinda like a smooth glide but with the whole camera
- griefercube
-
Scratcher
500+ posts
How do you make smooth camera x and y movement?
change [Camera X v] by (([desired x] - (Camera X))/[smoothness])Desired X and smoothness are numbers
(If this doesn’t work swap the desired x and camera x around
- ObjectRhythm
-
Scratcher
18 posts
How do you make smooth camera x and y movement?
Thank you smchange [Camera X v] by (([desired x] - (Camera X))/[smoothness])Desired X and smoothness are numbers
(If this doesn’t work swap the desired x and camera x around
- Discussion Forums
- » Help with Scripts
-
» How do you make smooth camera x and y movement?