Make PARTICLES bounce off walls etc.

For questions about using Classic.

Post » Thu Dec 16, 2010 3:11 pm

Hi, I've got a thruster game thingy which I'm creating. I've got the particles working with the ship as the smoke from the engine but atm the particles just go through the floor and walls and I can't find an option to makes them react to objects. Is this possible? If so, how do I go about it.

Thanks for your time.

JB :D

While I'm here. Is there a way to check how much speed the sprite has in downward movement? I mean, if I don't thrust up, then gravity kicks in and the sprite starts to drop. So, how would I check what value the gravity is at when it touches the floor? I need to check it so that I can tell whether the ship hit the floor to hard. If they manage to gently land then don't kill 'em, too much downward motion and KABOOM!

Thanks again.
B
2
G
2
Posts: 13
Reputation: 676

Post » Thu Dec 16, 2010 5:18 pm

I'm pretty sure that you can't have collisions on particles. You'd have to make your own custom particle emitter with sprites or some object that supports collisions, but that would be terribly cpu intensive.

[quote:3eq1azei]Is there a way to check how much speed the sprite has in downward movement?[/quote:3eq1azei]

If you're using physics behavior, you can use the expression 'Get velocity Y component', which will look like Sprite[Physics].VelocityY in the event sheet. Just use the System Evaluate condition to compare it with your thresholds, and make sure to use Else for each separate range check.
B
3
S
2
G
2
Posts: 187
Reputation: 1,449

Post » Fri Dec 17, 2010 9:39 am

Thanks for that, appreciate it.

I've had a word with Minor on here and he has a method of creating rocket smoke that bounces off sprites using ... sprites. Very clever way of doing it. I can't share the cap as it's not my work but if you ask him nice he might let you have a peek.

:)

Thanks again.
B
2
G
2
Posts: 13
Reputation: 676


Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 3 guests