Alright so I am working on a scratch scrolling game, so far i'm only testing stuff out.
I want my character to go to a certain spot when green arrow is clicked but if you know how the scrolling works (I can post the game if you request) you will know that the sprite in which the character will 'go to' when the 'green arrow' is clicked will also move along with the background. I want to know how to make the 'spawn place' to stay on the map, in one spot.
My initial idea was a red X drawn on the background I don't know if you can but I was thinking like;
'When green arrow is clicked
' [If]<Not>(Touching Color Red)
' (Go To (map1) )
' Touch color red? or something.
The scrolling background method I am using is found here:
http://scratch.mit.edu/forums/viewtopic.php?id=2440
and if needed I will upload the project. If Anyone would be so kind as to help me, or if you need clarification on what I mean, feel free to post.
you may be able to tell that i'm not 'pro' at Scratch, but i'd like to get to know it a bit more, so please help me. -Thanks.
Offline
Do you want to sprite to go to a certain place on the screen, no matter the scrolling position, or go to a certain scrolling position no matter the place on the screen? I think it is the first one.
If so, just separate that particular sprite from scrolling (Don't put the scrolling script on the sprite) and set it to your wanted Postion.
It would help to see the project so that we can see what you are asking for.
I hope that this has helped!
Offline
Ok well I uploaded the test and here it is;
http://scratch.mit.edu/projects/Kilux/785408
Your advise, I understand but once you take a look at the code I'm pretty sure your idea wont work, i've tried to do just that my way and it didn't have any luck. If you notice the X is moving with the background since that's what moves, not the cat. But please look over it and i'll be ready to take a second attempt with your advise.
Offline
So u want the cat to go to the far left of the map whenever green is clicked?
If so all u got to do is add a "set scrollx to 'whatever the variable number is when u are there" to the bottom of a "when flag click"
I'm pretty sure u would have to set scrollx to -490
Offline
it might help looking at the tutorial for scrolling in my sig
Offline