Discuss Scratch
- Discussion Forums
- » Questions about Scratch
- » Some Weird bugs with my location based system for scratch
- Smiles-The-Great
-
New Scratcher
7 posts
Some Weird bugs with my location based system for scratch
I have been having some bugs in my location based system for scratch i'm making for a separate game to make a big area with randomly generated things in different locations I have completed quite a lot of the system but I have a couple bugs that I truly don't know how there caused.
Issues that I have experienced:
Up arrow does not work (the rest of the arrow keys work,)
Planets show up for a frame or two when the flag is clicked,
Planet 2 is dragging across the screen on the Y Axis (Planet 1 is perfectly fine)
Link to the project:
https://scratch.mit.edu/projects/828213063/
All help is appreciated and if you need to know what an script is used for I am happy to help
(Note that this is my first ever thing built on scratch and is only used as a system to build other projects.)
Issues that I have experienced:
Up arrow does not work (the rest of the arrow keys work,)
Planets show up for a frame or two when the flag is clicked,
Planet 2 is dragging across the screen on the Y Axis (Planet 1 is perfectly fine)
Link to the project:
https://scratch.mit.edu/projects/828213063/
All help is appreciated and if you need to know what an script is used for I am happy to help

(Note that this is my first ever thing built on scratch and is only used as a system to build other projects.)
Last edited by Smiles-The-Great (April 2, 2023 04:35:55)
- -ElectronicArts-
-
Scratcher
1000+ posts
Some Weird bugs with my location based system for scratch
change all your key pressed code to this format:


- Smiles-The-Great
-
New Scratcher
7 posts
Some Weird bugs with my location based system for scratch
change all your key pressed code to this format:
_____________________________________________________________
if I did that it would allow me to press both W and Up Arrow at the same time which would double the speed, how do I still fix it while making it so they don't go at the same time.
Last edited by Smiles-The-Great (April 2, 2023 05:07:05)
- Smiles-The-Great
-
New Scratcher
7 posts
Some Weird bugs with my location based system for scratch
change all your key pressed code to this format:
_____________________________________________________________
if I did that it would allow me to press both W and Up Arrow at the same time which would double the speed, how do I still fix it while making it so they don't go at the same time.
_____________________________________________________________
I fixed it don't know how but while testing yours (which did half work as it still removed the script that stopped two movement buttons of the same time but while changing it back after it auto saved I somehow fixed it, it was probably just a single block mistake making everything not work.
- Smiles-The-Great
-
New Scratcher
7 posts
Some Weird bugs with my location based system for scratch
change all your key pressed code to this format:
_____________________________________________________________
if I did that it would allow me to press both W and Up Arrow at the same time which would double the speed, how do I still fix it while making it so they don't go at the same time.
_____________________________________________________________
I fixed it don't know how but while testing yours (which did half work as it still removed the script that stopped two movement buttons of the same time but while changing it back after it auto saved I somehow fixed it, it was probably just a single block mistake making everything not work.
_____________________________________________________________
Fixed the Planet 2 on Y axis not working bug by removing the show block on the X axis script only the bug where they appear at the start of the green flag being clicked for a frame or two.
- Discussion Forums
- » Questions about Scratch
-
» Some Weird bugs with my location based system for scratch

