Discuss Scratch

MyrtokCS50
New to Scratch
3 posts

GOTO() not working on left side of screen

I'm using the GOTO() function to make clones of a “laser” sprite appear at my spaceship when fired. Under the event “When I start as a clone” the laser sprite is instructed to “go to spaceship,” become visible, and then start moving up the screen (my ship can only shoot straight up). The laser sprites kept appearing about 95 pixels to the left of my ship, so I added a second command to “change x by 95” in order to make up for it. This works, except when my ship is near the left side of the screen. On those occasions, the laser appears to the right of the ship.

My project can be viewed at http://scratch.mit.edu/projects/25436222/

I'm new at this programming thing, and any help would be greatly appreciated.

Also, is there a way to change the name of a painted sprite? Sprite1, Sprite2, etc. gets a little confusing.
turkey3
Scratcher
1000+ posts

GOTO() not working on left side of screen

Just curious, are your sprites' costumes centered on the paint editor canvas? Having them off-center can make their true positions deceiving.

MyrtokCS50
New to Scratch
3 posts

GOTO() not working on left side of screen

NO!!!! They were not centered, and your advice has fixed my problem! Thank you very, very much.
MyrtokCS50
New to Scratch
3 posts

GOTO() not working on left side of screen

I added your name to the credits on my project Thanks again!

Powered by DjangoBB

Standard | Mobile