Hi,
The "obstacle' sprites that I have created are set to change the score when my main sprite is touching them. Although I seem to have a problem:
For example, ive got a coin that increases the score by 0.2, instead of increasing the original score of (for example) 2 to 2.2 it continues to increase until my sprite moves off it.
Is there any way that if my main sprite touches another 'obstacle' sprite once with out moving and just remains touching it, that it only decreases/increases the score by the decided value once?
Sorry, another question. How do I make my backgrounds move when my sprite is at the end of the stage, or moving back to a previous background? Ive managed to acomplish it moving forward by doing:
if green flag clicked
forever/start
if <touching edge>/start
broadcast change background
go to x: -193 y: -50
if /end
forever /end
Although if my sprite jumps too high it still changes the background and it only goes forward, not backward.
Any help would be appreciated for these questions
Offline
1). Try using this in your code:
wait until <not <touching [obstacle v]?>>2). If you want to know more about scrolling, try going here.
Last edited by ErnieParke (2012-11-08 06:58:27)
Offline
tash_5 wrote:
Thank you so much! that helped heaps
Well that's great, and good luck on your project!
Offline