Discuss Scratch

real_ender_dragon
Scratcher
61 posts

help!

I've been trying to make a game and one of the objectives is to avoid another sprite. It works well usually (save a glitch that I asked about previously, got a reply, and fixed) but THIS:

when I start as a clone
go to [random position]
repeat until <(this_health) < [1]
point towards [you]
move (speed) steps
end

keeps glitching!!!!!!!!!!! It gets maybe 75 or 100 pixels away, then just teleports to the other side of your sprite and and repeatedly glitches and vanishes and its SO annoying

I thought maybe there is a problem with the variable
(speed)
so I changed the code to
when I start as a clone
go to [random position]
repeat until <(this_health) < [1]
point towards [you]
move [1] steps
end

nope. Still glitched. Anyone know why?? and how to fix?


when green flag clicked
render (signature)
SansStudios
Scratcher
1000+ posts

help!

Hihi! To me, this code looks pretty sound . Maybe there's an issue with another script?

Could you send your project link or id?

scratchcloud
Click above to check it out! I've worked on it for over a year!























Just like sudden sadness comes hangin' on the breeze
real_ender_dragon
Scratcher
61 posts

help!

https://scratch.mit.edu/projects/610819034/editor also sorry my code is messy & has a bunch of unused stuff bc i haven't gotten around to it


when green flag clicked
render (signature)
SansStudios
Scratcher
1000+ posts

help!

The messy code is okay because this problem has nothing to do with code

In the costume editor, your sprite is un-centered. If you center it, your program works perfectly

scratchcloud
Click above to check it out! I've worked on it for over a year!























Just like sudden sadness comes hangin' on the breeze
real_ender_dragon
Scratcher
61 posts

help!

…what! i knew that was problem and fixed it!!!!!!!!!!!!!!!!!!!!
it didnt save!!!!!!!!!!!!!!!!!! really????????????????????
sorry then, i thought i fixed that


when green flag clicked
render (signature)
SansStudios
Scratcher
1000+ posts

help!

Don't worry about it! Saving issues happen to me all the time.

scratchcloud
Click above to check it out! I've worked on it for over a year!























Just like sudden sadness comes hangin' on the breeze

Powered by DjangoBB