Pages: 1
Topic closed
I'm trying to make a kind of tycoon game. The button to start keeps on staying on the screen, where it's not supposed to be, and the (i'm not going to tell you) ????? doesn't go through the tube, with the same problem of the button. is there anyway how to fix this?
Offline
Maybe a little more explanation?
If your button doesn't scroll, just put a little:
repeat until 'buttonisactive' = 0
go to x:0 y:0
Offline
Ilovejesus wrote:
I'm trying to make a kind of tycoon game. The button to start keeps on staying on the screen, where it's not supposed to be, and the (i'm not going to tell you) ????? doesn't go through the tube, with the same problem of the button. is there anyway how to fix this?
I think I know what you mean. The sprite is staying on the edge of the screen when it isn't supposed to. This is a problem with scratch, but the best way to overcome this is to create a sprite which just covers the edges of the screen, making the screen smaller but getting rid of this problem.
Offline
djmoomoo wrote:
Maybe a little more explanation?
If your button doesn't scroll, just put a little:
repeat until 'buttonisactive' = 0
go to x:0 y:0
Thanks sooooooooo much! you fixed my button problem! all i need is to do now is fix my ????? problem.
Offline
Ilovejesus wrote:
djmoomoo wrote:
Maybe a little more explanation?
If your button doesn't scroll, just put a little:
repeat until 'buttonisactive' = 0
go to x:0 y:0Thanks sooooooooo much! you fixed my button problem! all i need is to do now is fix my ????? problem.
Shoot. Cross that.
Offline
It's impossible, because in scrolling the BACKGROUND moves, not the sprite.
Happy Scratch-ing!
Offline
pokemon_master12 wrote:
It's impossible, because in scrolling the BACKGROUND moves, not the sprite.
Happy Scratch-ing!
Really? i've done a couple of Scrollers and the backround doesn't move. at all. u can look into it.
Offline
Well scrolling is where the background moves. The sprite just looks like it's moving because the background is moving and it is pointing in the direction the background is moving in. And by the way, it is possible to make the sprite go through the tube AND make the button hide once it's pressed.
To make the ??????? go through the tube, you have to put this script:
[blocks]<when green flag clicked>[/blocks]
[blocks]<forever if>[/blocks][blocks]<touching[ tube[/blocks]
[blocks]<hide>[/blocks]
[blocks]<end>[/blocks]
That way, (if you add a "forever if not touching tube, show" script) whenever it's touching the tube, it will disappear into it, and whenever it's not, it will show itself like it's coming out of the tube.
To make the button disappear once it's pressed, just add this:
[blocks]<when[ button ]clicked>[/blocks]
[blocks]<hide>[/blocks]
or this:
[blocks]<when[ button ]clicked>[/blocks]
[blocks]<broadcast[ start game ]and wait c>[/blocks]
[blocks]<when I receive[ start game[/blocks]
[blocks]<hide>[/blocks]
Then your game will be fixed!
Happy Scratch-ing!
Offline
Hey! I made a demo of my game! Check it out! It's called Donut Tycoon Demo. Now do u see what the ????? is?
Offline
Topic closed
Pages: 1