Discuss Scratch

HaiGhudbai
Scratcher
500+ posts

How to reset a sprite's position when the green flag is pressed?

Title explains it all.
Oh yeah, this is the project I need help on: *Removed because there isn't an undo button in the project editor

Last edited by HaiGhudbai (April 17, 2016 19:07:24)

helloandgoodbye9
Scratcher
1000+ posts

How to reset a sprite's position when the green flag is pressed?

Add point in direction -90 degrees.
deck26
Scratcher
1000+ posts

How to reset a sprite's position when the green flag is pressed?

when green flag clicked
go to x: () y: (0)
HaiGhudbai
Scratcher
500+ posts

How to reset a sprite's position when the green flag is pressed?

Oh wait, I used the wrong title.
What I meant was how do I reset the sprites upright position.
deck26
Scratcher
1000+ posts

How to reset a sprite's position when the green flag is pressed?

You mean the direction they're facing? So point in the right direction in a green flag script.
HaiGhudbai
Scratcher
500+ posts

How to reset a sprite's position when the green flag is pressed?

deck26 wrote:

You mean the direction they're facing? So point in the right direction in a green flag script.
No, like reset the sprite to its original position after they spin.
Talk_To_Them
Scratcher
100+ posts

How to reset a sprite's position when the green flag is pressed?

All you really do is this…

when I receive [Dead v]
go to x: (Whatever the x position is) y: (Whatever the y position is)
deck26
Scratcher
1000+ posts

How to reset a sprite's position when the green flag is pressed?

I can't work out what you want but the solution will still be a case of a green flag script to set the sprite according to requirements.
Vinny_0
Scratcher
12 posts

How to reset a sprite's position when the green flag is pressed?

when green flag clicked
point in direction (Whatever direction is the correct one for you.)
footsocktoe
Scratcher
1000+ posts

How to reset a sprite's position when the green flag is pressed?

HaiGhudbai wrote:

Title explains it all.
Oh yeah, this is the project I need help on: *Removed because there isn't an undo button in the project editor

The green flag is not for REsetting, it's for setting.

So work out how your sprites should begin, what direction, what size, where they should be on the stage, etc, and then set them to that when the green flag is clicked.

Last edited by footsocktoe (April 18, 2016 03:19:47)

Creeperuballe
Scratcher
1 post

How to reset a sprite's position when the green flag is pressed?


boi why you always lyin
VKGamingExpert
Scratcher
3 posts

How to reset a sprite's position when the green flag is pressed?

innit what what is that noise lemme check bye

Last edited by VKGamingExpert (April 7, 2021 18:18:58)

Yusei-Fudo
Scratcher
1000+ posts

How to reset a sprite's position when the green flag is pressed?

when green flag clicked
point in direction (90 v)
goldenlion06
Scratcher
500+ posts

How to reset a sprite's position when the green flag is pressed?

VKGamingExpert wrote:

innit what what is that noise lemme check bye
don't spam or necropost
goldenlion06
Scratcher
500+ posts

How to reset a sprite's position when the green flag is pressed?

Yusei-Fudo wrote:

when green flag clicked
point in direction (90 v)
dont necropost
OPT2049
Scratcher
34 posts

How to reset a sprite's position when the green flag is pressed?

goldenlion06 wrote:

Yusei-Fudo wrote:

when green flag clicked
point in direction (90 v)
dont necropost
when green flag clicked
forever
clear
stamp
stop all sounds
set pen color to <touching color [#20deb8] ?>
end
Leahbear2012
Scratcher
9 posts

How to reset a sprite's position when the green flag is pressed?

if u wanna reset position, do this:
when green flag clicked
go to x: () y: ()
point in direction ( v)
now fill in the blanks and there you go!
*this can only be used if u have a certain position and direction u want it facing at the beginning of the project. u dont have to use the direction block unless u wanna change the sprite's direction in the middle of the project.*
hope this helps. If it didn't work, i'll find another solution. I use this all the time.

Last edited by Leahbear2012 (Jan. 29, 2024 16:31:48)

Powered by DjangoBB