I have trouble making the game pause and the shop button won't work. The variable also is in the wrong place in the wrong form. Any help would be appreciated.
Link: http://scratch.mit.edu/projects/Haiming/2262794
Offline
I can solve the variable problem right away, simply save the project with the variable in the right place and form while it is visible. For some reason, saving a project while a variable is hidden restores it to the default location and form.
Offline
I did that, but still, it won't go to it's form. I saved with the variable showing, but I uploaded the project with the variable hiding (I uploaded it with the default title format).
Kileymeister wrote:
I can solve the variable problem right away, simply save the project with the variable in the right place and form while it is visible. For some reason, saving a project while a variable is hidden restores it to the default location and form.
Offline
If it's not showing when the project is uploaded, it will return to it's default form and position.
Offline
Haiming wrote:
I did that, but still, it won't go to it's form. I saved with the variable showing, but I uploaded the project with the variable hiding (I uploaded it with the default title format).
Kileymeister wrote:
I can solve the variable problem right away, simply save the project with the variable in the right place and form while it is visible. For some reason, saving a project while a variable is hidden restores it to the default location and form.
Then try uploading it with the variable showing too.
Just include a "When Green Flag clicked Hide Variable" so that it doesn't show in the beginning.
Offline
The shop button problem is because the bullet sprite goes to aimer, blocking the mouse from the button. Replace:
When [shop] clicked broadcast [Shop v] change [Shop v] by (1) show variable [Enemy Counter v]with:
When gf clicked forever if < <touching [mouse-pointer v] ?> and <mouse down?> > broadcast [Shop v] change [Shop v] by (1) show variable [Enemy Counter v] endAlso, you have another problem--the shot goes on top of the shop menu. To fix that, add this script to Shop List:
When gf clicked forever if <(Shop) = (1)> go to front end
Last edited by Greenatic (2012-01-29 11:41:53)
Offline