Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » How to make a player go to x position 240 if the player's x position is x -240
- chessornot123
-
Scratcher
17 posts
How to make a player go to x position 240 if the player's x position is x -240
when green flag clicked
forever
change [ X] by (1)
if <(x position) < [-240]> then
go to x: (240) y: (y position)
end
change [ X] by (-1)
if <(x position) > [240]> then
go to x: (-240) y: (y position)
end
end
- chessornot123
-
Scratcher
17 posts
How to make a player go to x position 240 if the player's x position is x -240
that's what the YouTube video said to do but did I do it wrong?
- chessornot123
-
Scratcher
17 posts
How to make a player go to x position 240 if the player's x position is x -240
Also I cant switch backgrounds with my thing. Right now.
- jmb1293634
-
Scratcher
1000+ posts
How to make a player go to x position 240 if the player's x position is x -240
if it is at 240 then it goes to -240 if it is at -240 then it goes to 240 this makes it just teleport constantly also you don't need:when green flag clicked
forever
change [ X] by (1)
if <(x position) < [-240]> then
go to x: (240) y: (y position)
end
change [ X] by (-1)
if <(x position) > [240]> then
go to x: (-240) y: (y position)
end
end
go to x: () y: (y position)you can just use:
set x to ()
- chessornot123
-
Scratcher
17 posts
How to make a player go to x position 240 if the player's x position is x -240
Plus my Y is 69
- chessornot123
-
Scratcher
17 posts
How to make a player go to x position 240 if the player's x position is x -240
jmb1293634 By the Way it still don't work.
- chessornot123
-
Scratcher
17 posts
How to make a player go to x position 240 if the player's x position is x -240
Oops I realized the solution.
- Discussion Forums
- » Help with Scripts
-
» How to make a player go to x position 240 if the player's x position is x -240