Car Behavior: Disable Bounce on Collision

For questions about using Classic.

Post » Tue Feb 16, 2010 5:49 pm

Is possible. Is that the game I'm making has a car with an extreme max speed. But if it touch something, it goes back, back, back ... and stop. I tried the stop function with the on collision event, bu it didn't work.
B
6
S
2
G
6
Posts: 48
Reputation: 2,936

Post » Tue Feb 16, 2010 6:42 pm

Car behavior isn't one that people have used very often in the past, so I believe it may have been a little neglected as far as features go. It might be worth it to try creating your own car movement from Custom Movement behavior, then you'll have more control over collisions and crashes.

At any rate, I recall that Guyon recently found a solution to stopping the car on collision, you could ask him about it. I'm not terribly familiar with the behavior myself, and I'm not on my Construct computer at the moment.
Moderator
B
5
S
2
G
6
Posts: 4,348
Reputation: 10,971

Post » Tue Feb 16, 2010 8:51 pm

Ok, I will try something. If I found a solution, I post it here. :wink:
B
6
S
2
G
6
Posts: 48
Reputation: 2,936

Post » Tue Feb 16, 2010 10:26 pm

This might help

http://dl.dropbox.com/u/1646976/GP2.cap

Layout 2 uses the custom movement behaviour for car movement. Also Layout 1 has a bog standard AI driver to race against.

Hope it helps.

**Edit** cap was made in 0.99.82
B
46
S
23
G
7
Posts: 459
Reputation: 6,763

Post » Wed Feb 17, 2010 8:25 pm

Sorry, I forgot to post here. I have used the custom movement behavior and works fantastic. :D

@Minor I will see your demo, thanks for sharing. :D
B
6
S
2
G
6
Posts: 48
Reputation: 2,936


Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 4 guests