Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » If i connect this script into my collision script, it doesn't work
- AidyGamer60
- Scratcher
100+ posts
If i connect this script into my collision script, it doesn't work
I am using TurboWarp.
The above script works, it prevents the player from clipping into the darkness while moving right while holding left,
but when I attach the above script, it no longer works. Any advice?
The above script works, it prevents the player from clipping into the darkness while moving right while holding left,
but when I attach the above script, it no longer works. Any advice?
Last edited by AidyGamer60 (April 18, 2021 14:55:17)
mostly inactive!!
- Theo_1er
- Scratcher
500+ posts
If i connect this script into my collision script, it doesn't work
Place the second script before the firs one ?
Quand le risque est ridicule, la récompense est ridicule.
- deck26
- Scratcher
1000+ posts
If i connect this script into my collision script, it doesn't work
Do you have another script changing the direction of the player when right arrow is pressed? Better to share the project thana partial script with no context.
- AidyGamer60
- Scratcher
100+ posts
If i connect this script into my collision script, it doesn't work
Got turbowarp link
https://turbowarp.org/517174076?hqpen&interpolate&clones=Infinity&limitless&size=426x240
https://turbowarp.org/517174076?hqpen&interpolate&clones=Infinity&limitless&size=426x240
Last edited by AidyGamer60 (April 18, 2021 15:11:37)
mostly inactive!!
- AidyGamer60
- Scratcher
100+ posts
If i connect this script into my collision script, it doesn't work
actually cries inside
mostly inactive!!
- deck26
- Scratcher
1000+ posts
If i connect this script into my collision script, it doesn't work
Why do you want to check for left/right/direction=90 in combination when the left arrow is also trying to change direction to -90?
- Catzcute4
- Scratcher
100+ posts
If i connect this script into my collision script, it doesn't work
See, 90° and -90° are opposing, here’s the script you need to use: Why do you want to check for left/right/direction=90 in combination when the left arrow is also trying to change direction to -90?
if <not <<key [left arrow v] pressed?> or <key [right arrow v] pressed?>>> then
reflect
define reflect
…::gray
end
Last edited by: A cat. ERROR: Reality already slightly broken.
Gravity simulator—Red ball recreations—ChargedMD—The stack—My assets
Hi! I have a command block that kills all evil kumquats in it’s range of 1 light year. It does this by making antimatter. Otherwise, have a kumquat free day!
Sign out
^ click it if you don’t believe it works
- Yoosle
- Scratcher
81 posts
If i connect this script into my collision script, it doesn't work
why would you want left and right key to be pressed for it to go left?
- AidyGamer60
- Scratcher
100+ posts
If i connect this script into my collision script, it doesn't work
So what would be in the define?See, 90° and -90° are opposing, here’s the script you need to use: Why do you want to check for left/right/direction=90 in combination when the left arrow is also trying to change direction to -90?if <not <<key [left arrow v] pressed?> or <key [right arrow v] pressed?>>> then
reflect
define reflect
…::gray
end
mostly inactive!!
- Discussion Forums
- » Help with Scripts
- » If i connect this script into my collision script, it doesn't work