Make bullets stop at walls thingy?

Get help using Construct 2

Post » Wed Aug 22, 2012 11:24 pm

I made a zombie, who is supposed to keep moving towards the center of the map. BUT I wanted him to run into the wall, play clawing animation, then the wall destroys. But he goes right through the wall! Um how do I make him stop that? The wall has solid behavior, and the zombie has bullet.
B
30
S
7
G
3
Posts: 366
Reputation: 6,252

Post » Wed Aug 22, 2012 11:57 pm

Hmm. Bumpy!
B
30
S
7
G
3
Posts: 366
Reputation: 6,252

Post » Thu Aug 23, 2012 12:21 am

In the how do I FAQ there are several examples of "patrol"/"patrolling" objects, which is what you are trying to do.

Also, please don't bump half an hour after having made a new thread.
Wait at least a few hours before any kind of bump.Kyatric2012-08-23 00:21:32
New to Construct ? Where to start

Image Image

Image Image

Please attach a capx to any help request or bug report !
Moderator
B
276
S
103
G
84
Posts: 7,289
Reputation: 83,100

Post » Thu Aug 23, 2012 12:28 am

Um not really. Im just using "Every Tick set angle towards Player.X, Player.Y" I wanna know how to make bullets NOT go through solids but NOT bounce off either.
B
30
S
7
G
3
Posts: 366
Reputation: 6,252

Post » Thu Aug 23, 2012 12:32 am

Set the speed to 0 or set the bullet behavior disabled.
B
55
S
29
G
19
Posts: 1,520
Reputation: 25,610

Post » Thu Aug 23, 2012 12:40 am

Then what event do I use to make it move after the block is destroyed?
B
30
S
7
G
3
Posts: 366
Reputation: 6,252

Post » Thu Aug 23, 2012 12:47 am

Oh ok, I read again the first post.
You need to check for a collision between the zombie and the wall. On that collision set the animation of your zombie.
Once it happens, you need to not move the zombie again (so your moving event needs another condition, like a check on a boolean, or an animation already not playing).
And at the end of this animation, destroy the wall, and set the zombie to move again.

Example capx the zombie follows the mouse cursor.
New to Construct ? Where to start

Image Image

Image Image

Please attach a capx to any help request or bug report !
Moderator
B
276
S
103
G
84
Posts: 7,289
Reputation: 83,100

Post » Thu Aug 23, 2012 12:49 am

Ok Thanks!
B
30
S
7
G
3
Posts: 366
Reputation: 6,252


Return to How do I....?

Who is online

Users browsing this forum: bangoo, krombanna and 5 guests