Hi everybody
I am new to scratch, and am creating a game. i want to make it like a tower defense game, but every time I shoot the sprite that I want to make disappear, it just starts flickers and keeps Moving. Also, is there any way I can make it so that the sprite only appears on certain levels? Any help will be greatly appreciated.
Offline
Jb4R33lZ wrote:
Hi everybody
I am new to scratch, and am creating a game. i want to make it like a tower defense game, but every time I shoot the sprite that I want to make disappear, it just starts flickers and keeps Moving. Also, is there any way I can make it so that the sprite only appears on certain levels? Any help will be greatly appreciated.
Could you post your scripts? That would make it much easier to trouble shoot.
Regards,
CAA14
Offline
This is what I started with for the sprite that I want to make disappear.
[scratchblocks]
when gf clicked
forever
if <touching bullet 1>
hide
[scratchblocks]
[scratchblocks]
when I receive <training>
forever
hide
[scratchblocks]
And
[scratchblocks]
when I receive <level 1>
Forever
show
[scratchblocks]
Offline
Jb4R33lZ wrote:
This is what I started with for the sprite that I want to make disappear.
when gf clicked forever if <touching? [bullet 1 v]> hide end endwhen I receive [training v] forever hide end endAndwhen I receive [level 1 v] forever show end
Fixed.
Okay, here's the problem:
when I receive [level 1 v] forever show endThe forever loop is never breaking, so there are 2 forever loops trying to do opposite things at the same time, thus the flickering.
when gf clicked forever if <touching? [bullet 1 v]> hide end end
when I receive [training v] forever // I do not understand what this is for, so i can't suggest anything yet. hide end
when I receive [level 1 v] forever if <not <touching? [bullet 1 v]>> show end endHope that helps,
Offline
Jb4R33lZ wrote:
Thank you that helped. Now i need help in which i can make this script appear on different levels. You have been a great help CAA14 thaknks
No problem, glad i could help.
Now, about your levels, could you post your scripts? I don't want to mess something up by suggesting something that would mess something up that's already in your scripts.
The idea is that there's a variable called "level", and if that level is = to 1, then the sprite/background "level 1" appears, and the other levels do not.
Hope that helps,
If you don't understand, just ask and i will go into more detail.
CAA14
Offline