トピック
Jacob KulcakKid4

How to change sprite size

I'm making a game where you go to a 'shop' and buy upgrades. The problem is, i can't figure out how to change SPsize and SPspeed when you buy an item.
2そうだね
プレイ済み
返信[1]
親投稿
Use the command called SPSCALE. SPSCALE (sprite),(scale x),(scale y)
0そうだね
プレイ済み
返信[2]
親投稿
*J.P.*[P]£ aj2003aj
well if its simply upgrades, like if speed+5 is bought then speed=+5 just add the sprite you want with it.
0そうだね
プレイ済み
返信[3]
親投稿
*J.P.*[P]£ aj2003aj
oh yeah, in the code you have that lets the sprite walk around, there should be a code that shows how fast you want it to move, use whatever you named it instead of speed.
0そうだね
プレイ済み
返信[4]
親投稿
Jacob KulcakKid4
in the game there's the main screen where you move, and if you press a button it brings you to the 'shop'. I can't figure out how to put spscale and speed+5 into the shop.
1そうだね
プレイ済み
返信[5]
親投稿
Jacob KulcakKid4
what i'm doing for the code is IF B==Y THEN GOTO @SHOP @SHOP IF B==A&DOWN THEN SPSCALE #,#,# I put # because i can't remember the exact numbers, and for the speed IF B==UP&A THEN X=X+5 and so on
1そうだね
プレイ済み
返信[6]
親投稿
Jacob KulcakKid4
i'm new to SB, so it's still pretty complicated for me.
1そうだね
プレイ済み