If by "take cover" you mean get behind a wall, you could either make it a new costume and after a few seconds the cat/mascot switches to the new costume and it looks like he is taking cover. Second way is to make the cat/mascot be able to move and say an enemy was shooting at you, you could make it so the enemy won't shoot when your behind (maybe a certain color wall would help?) the wall. This might be hard scripting but I think you can pull it off.
Offline
Robloxia wrote:
Here: http://scratch.mit.edu/projects/Robloxia/2460995 Copy and paste the link
I guess that helps a little bit, I still want to figure out how to move in and out of cover while enemy troops shoot at me in a fulent in and out motion. Thanks for the help, but it just wasn't what I was looking for.
Last edited by JRL (2012-04-10 20:48:08)
Offline
If you want the bullets to stop moving when the hit the walls (is this right?), try this for the bullets:
when I Receive [enemy_shoot_1 v] go to [enemy_1 v] point towards [main_sprite v] show turn cw (pick random (-5) to (5)) degrees repeat until <<touching [main_sprite v]?> or <touching [wall v]?>> move (10) steps end if<touching[main_sprite v]?> change [health v] by (-1) end hideOr do you want the sprite to literally get smaller near cover? I have a project that I made a while ago that I could upload if you want that. It's kind of complicated though.
Last edited by MoreGamesNow (2012-04-10 21:44:27)
Offline
MoreGamesNow wrote:
If you want the bullets to stop moving when the hit the walls (is this right?), try this for the bullets:
when I Receive [enemy_shoot_1 v] go to [enemy_1 v] point towards [main_sprite v] show turn cw (pick random (-5) to (5)) degrees repeat until <<touching [main_sprite v]?> or <touching [wall v]?>> move (10) steps end if<touching[main_sprite v]?> change [health v] by (-1) end hideOr do you want the sprite to literally get smaller near cover? I have a project that I made a while ago that I could upload if you want that. It's kind of complicated though.
This is what I was looking for, I'll test it out and let you know if I will be using it.
Offline
Why not have the bullet sprite stop its script if it is touching any object that could be used as cover?
Offline