This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#1 2012-08-13 15:30:28

normal_girl
Scratcher
Registered: 2012-08-13
Posts: 100+

Need help on something...

I'm trying to create a game where you have to collect coins. I'm using the scroll method so whenever my character moves, my coin moves too! How can you resolve this problem?


This will be replaced by an awesome sig from here soon!  big_smile  http://blocks.scratchr.org/API.php?user=normal_girl&action=onlineStatus&online=http://i41.tinypic.com/314ast1.jpg&offline=http://i42.tinypic.com/24g9j5h.jpg
http://i.imgur.com/fJGCgWC.png

Offline

 

#2 2012-08-13 15:31:13

berberberber
Scratcher
Registered: 2012-03-08
Posts: 1000+

Re: Need help on something...

Have it go to the Scroll position you want.


http://i47.tinypic.com/2iaa73k.png

Offline

 

#3 2012-08-13 17:21:21

MoreGamesNow
Scratcher
Registered: 2009-10-12
Posts: 1000+

Re: Need help on something...

Put this in your coins:

when gf clicked
forever
set x to ((scrollx) - [position in the scrolling environment])
if<touching [main sprite v]?>
change [coins v] by (1)
stop script
end
Edit:  This script may be easier

when gf clicked
repeat until <touching [main sprite v]?>
set x to ((scrollx) - [position in the scrolling environment])
end
change [coins v] by (1)

Last edited by MoreGamesNow (2012-08-13 17:22:27)


http://images2.layoutsparks.com/1/218929/rubiks-cube-animated-rotating.gif
"Cogito ergo sum" --  I think, therefore I am

Offline

 

Board footer