Objects with perpetual movement

Get help using Construct 2

Post » Fri Jan 25, 2013 10:06 pm

Did you give the walls solid behavior and set the planet to bounce off solids?
B
54
S
28
G
18
Posts: 1,520
Reputation: 24,990

Post » Sat Jan 26, 2013 2:06 am

On you very last event, When planet is on collision with side wall,

Have you tried

"applying impulse towards position".

If you set the impulse to 5 and the X to 50 it kinda gives what you want, I think. I can try a bit later to think of a better way unless you have already found out how to.

[QUOTE=kill0byte] Hmm, after some further testing this doesn't quite work. It does cause the planet to bounce around for much longer so it's good for the time being, but ultimately I'd like to be able to figure out how to have the planet move at a constant speed like the asteroids in "Asteroids", and other games like that. The game takes place in space so there the objects should never slow down, so there seems to be something I'm missing about how physics objects work in C2.[/QUOTE] retrodude2013-01-26 02:08:16
B
18
S
4
G
3
Posts: 436
Reputation: 4,801

Post » Sat Jan 26, 2013 2:09 am

This should work

[QUOTE=ramones] Did you give the walls solid behavior and set the planet to bounce off solids?[/QUOTE]
B
18
S
4
G
3
Posts: 436
Reputation: 4,801

Post » Tue Jan 29, 2013 3:43 am

Retrodude, I'll try your suggestion. Setting the walls as solid etc. does not work however. The planet will gradually slow down and then stop.
B
8
S
1
Posts: 34
Reputation: 938

Previous

Return to How do I....?

Who is online

Users browsing this forum: christina and 6 guests