Kyle2Death wrote:
Something for music...
when gf clicked go to x: (-226) y: (170) switch to costume [Music1 v] set [Music v] to [1] repeat until < (Lives:) = [0] > if < (Music) = [1] > switch to costume [Music1 v] repeat until < (Music) = [0] > if < touching [mouse-pointer v] ? > switch to costume [Music2 v] end if < not < touching [mouse-pointer v] ? > > switch to costume [Music1 v] end end end if < (Music) = [0] > stop all pinks switch to costume [Music Off1 v] repeat until < (Music) = [1] > if < touching [mouse-pointer v] ? > switch to costume [Music Off2 v] end if < not < touching [mouse-pointer v] ? > > switch to costume [Music Off1 v] end end end end stop script when [Music] clicked if < (Music) = [1] > set [Music v] to [0] else set [Music v] to [1] end stop script when gf clicked show set volume to (100) % forever repeat until < (Music) = [0] > play sound [Garlagan_Thundag v] until done endLol.
Fixed
now its fixed.
Offline
Offline
On the Cash Register (Coin):
when gf clicked hide variable (Amount) set (Amount) to 0
When I receive (Ball Price) show broadcast (Till) show variable (Amount)Same code as above made for hat and key too.
When I receive <Ball Price> if <touching (Coin)? hide change Amount by 1 go to x: -144 y:-120> else <if Amount = (1)> broadcast (Part 3)>Each coin has a code like this one above for hat and key too
Offline
show video url : [ ] [small mode v] [play v]
Offline
jevks wrote:
On the Cash Register (Coin):
when gf clicked hide variable [Amount v] set [Amount v] to [0]When I receive [Ball Price v] show broadcast [Till v] show variable [Amount v]Same code as above made for hat and key too.
This code is made for each coin....When I receive [Ball Price v] if <touching [Coin v]?> hide change [Amount v] by (1) go to x:(-144) y:(-120) else if <(Amount) = (1)> broadcast [Part 3 v]Each coin has a code like this one above for hat and key too
Fixed.
Offline
This is for a platforming game, make sure the ground is black:
when gf clicked forever if <touching color [#000008]?> change y by (5) end if <not <touching color [#000008]?>> change y by (-5) end if <key [space v] pressed?> repeat (10) change y by (10) if <key [right arrow v] pressed?> point in direction (90 v) move (6) steps end if <key [left arrow v] pressed?> point in direction (-90 v) move (6) steps end end repeat (10) change y by (-10) if <key [right arrow v] pressed?> point in direction (90 v) move (6) steps end if <key [left arrow v] pressed?> point in direction (-90 v) move (6) steps end end end if <key [right arrow v] pressed?> point in direction (90 v) move (6) steps end if <key [left arrow v] pressed?> point in direction (-90 v) move (6) steps end endTry it
Offline