Discuss Scratch
- Discussion Forums
- » Show and Tell
- » Subway Surfers
        ![[RSS Feed] [RSS Feed]](//cdn.scratch.mit.edu/scratchr2/static/__5b3e40ec58a840b41702360e9891321b__//djangobb_forum/img/feed-icon-small.png)  
- rextee33
- 
                             Scratcher Scratcher
97 posts
Subway Surfers
https://scratch.mit.edu/projects/413971628 I need help with the money script. thats all
                        
                        
                    - rextee33
- 
                             Scratcher Scratcher
97 posts
Subway Surfers
I need to figure out ow 2 do the coins! i need help on dat
                        
                        
                    - Zelfen
- 
                             Scratcher Scratcher
1000+ posts
Subway Surfers
Duplicate the hazards and make the coins, then add this script:
                        
                        
                    when I start as a cloneTry that
show
forever
if <touching [Sprite v] ?> then
change [Coins v] by (1)
delete this clone
end
end
- rextee33
- 
                             Scratcher Scratcher
97 posts
Subway Surfers
yes but..  ok, now ive figured the code but…. how do you make the coin script say go to 
or
how do u make a script like that?
                        
                        
                    go to x: (?) y: (?)
or
go to x: () y: (0)
how do u make a script like that?
- Zelfen
- 
                             Scratcher Scratcher
1000+ posts
Subway Surfers
yes but.. ok, now ive figured the code but…. how do you make the coin script say go toI said duplicate one of the hazards and add that script, delete the old coins, also, if you want to do that, do this script:go to x: (?) y: (?)
orgo to x: () y: (0)
how do u make a script like that?
when I start as a cloneOh yeah, when creating the position variable, make sure to tick “For this sprite only”
set [position v] to (pick random (1) to (3))
if <(position) = [1]> then
go to x: (-156) y: (168)
glide (2) secs to x: (-156) y: (168)
else
if <(position) = [2]> then
go to x: (4) y: (168)
glide (2) secs to x: (4) y: (-168)
else
go to x: (161) y: (168)
glide (2) secs to x: (161) y: (-168)
end
- rextee33
- 
                             Scratcher Scratcher
97 posts
Subway Surfers
Thank you! This has really helped  Why does everyone write be moist though?
 Why does everyone write be moist though?
                        
                        
                     Why does everyone write be moist though?
 Why does everyone write be moist though?- Zelfen
- 
                             Scratcher Scratcher
1000+ posts
Subway Surfers
Thank you! This has really helpedIt's a trend.Why does everyone write be moist though?
- Discussion Forums
- » Show and Tell
- 
            » Subway Surfers ![[RSS Feed] [RSS Feed]](//cdn.scratch.mit.edu/scratchr2/static/__5b3e40ec58a840b41702360e9891321b__//djangobb_forum/img/feed-icon-small.png)  
 
            ![[RSS Feed] [RSS Feed]](http://cdn.scratch.mit.edu/scratchr2/static/__5b3e40ec58a840b41702360e9891321b__//djangobb_forum/img/feed-icon-small.png)

