Sorry, another question

For questions about using Classic.

Post » Fri Sep 05, 2008 5:00 am

I am trying to experiment with making walls/boundaries. So far I can make an object/wall that prevents the motion of the player, but I am having trouble making it so the monsters cannot pass through.

I have tried making the walls and monsters solids as well as played with the physics behavior. Also tried to have the monsters choose a new angle based on collision or overlap of the wall, but none have stopped them so far.

(This is based within the framework of the ghost shooter game so far, ie top down shooter)
B
1
G
4
Posts: 6
Reputation: 1,037

Post » Fri Sep 05, 2008 5:08 am

The Ghosts in that example are using the bullet movement.

That is likely what is confusing you.
B
2
S
2
G
5
Posts: 391
Reputation: 2,432

Post » Fri Sep 05, 2008 2:27 pm

You don't need the physics behavior for this. If you make the ghosts have a Ball movement instead of Bullet, you can set them to bounce off solids, and insert your wall and mark it as solid.

Alternatively just have an event like
+ Ghost collides with wall
-> Set ghost angle to Ghost.Angle + 180

That'll turn it round the other way if it touches the wall.
Scirra Founder
B
359
S
214
G
72
Posts: 22,946
Reputation: 178,468

Post » Fri Sep 05, 2008 4:22 pm

[quote="Ashley":i1r651ly]You don't need the physics behavior for this. If you make the ghosts have a Ball movement instead of Bullet, you can set them to bounce off solids, and insert your wall and mark it as solid.

Alternatively just have an event like
+ Ghost collides with wall
-> Set ghost angle to Ghost.Angle + 180

That'll turn it round the other way if it touches the wall.[/quote:i1r651ly]

I tried the collision + new angle, but that didnt help with the bullet movement. I will try switching them to ball now. Thanks.
B
1
G
4
Posts: 6
Reputation: 1,037


Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 4 guests