Discuss Scratch

cs906485
Scratcher
2 posts

The Sprite is in the wrong place.

https://scratch.mit.edu/projects/178011269/

First, you have to look at the scripts by clicking the “”See Inside“ button.
Second, you have to click the green flag and then click on a random sprite in the ”Sprite“ section.
As the story continues, it seems fine. Although, once the ”Earth“ sprite changes its costume (due to broadcasting ”backgroundchange"), the purple wizard doesn't go to its proper place (which is (-32, -109)). He just stays at the edge of the screen. Although, the story continues to function.

Sometimes, he can go to the proper place, but it is possible to create the situation by clicking on two random sprites. Is it a glitch in the program or is it a problem with my code?
StrangeMagic32
Scratcher
1000+ posts

The Sprite is in the wrong place.

Make sure that the costume is centered in the costume editor
deck26
Scratcher
1000+ posts

The Sprite is in the wrong place.

I wonder if the sprite is still running its glide from the add2 script so the broadcast tries to move it but it goes back to gliding to the position you told it to. Try reducing the time for the glide to see if that makes a difference or the length of one of the wait blocks.

Last edited by deck26 (Nov. 21, 2017 14:54:19)

cs906485
Scratcher
2 posts

The Sprite is in the wrong place.

Here's the same link just for your reference: https://scratch.mit.edu/projects/178011269/

Thank you for giving suggestions! They really enhanced my understanding of the problem.

If you guys are wondering, I changed slightly modified the script within the purple wizard. At the end of the “add2” block series, I made the gliding command last for .85 seconds instead of 1 second. In addition, I added a waiting block at the end of the sequence and changed the value to .15 seconds. Those changes seemed to do the trick. Thank you!
neetivaidya
Scratcher
16 posts

The Sprite is in the wrong place.

this is not working for me
Even centered, it movves to the wrong place
deck26
Scratcher
1000+ posts

The Sprite is in the wrong place.

neetivaidya wrote:

this is not working for me
Even centered, it movves to the wrong place
Please create your own new topic rather than necroposting. Also share what you have and identify the sprite/costume.
AKSNDKANSKD
New Scratcher
1 post

The Sprite is in the wrong place.

I'm having a problem. I don't know how to describe it. Just see. https://scratch.mit.edu/projects/441906682/
vallere702
Scratcher
100+ posts

The Sprite is in the wrong place.

AKSNDKANSKD wrote:

I'm having a problem. I don't know how to describe it. Just see. https://scratch.mit.edu/projects/441906682/
As stated above, please create your own post here.

Powered by DjangoBB