problem with collision

For questions about using Classic.

Post » Sun Aug 08, 2010 6:39 am

i am making a player with tank movement (left and right to rotate, up to go toward angle and down to go backward angle), i make it with custom movement behavior, but when i want to make a collision with another object, the player don't detect it and through it. either, the player objects and the "wall" object have a mask collision and solid attribute, but it seem like both object don't collide each other

the code is this

B
10
G
2
Posts: 33
Reputation: 1,091

Post » Sun Aug 08, 2010 8:18 am

As I know, CustomMovement has no autostoping on collision, use "On collision with...[your solid object or family]" - "Bounce"
B
2
S
2
G
2
Posts: 158
Reputation: 1,366

Post » Sun Aug 08, 2010 4:33 pm

[quote="DtrQ":uvckfnqi]As I know, CustomMovement has no autostoping on collision, use "On collision with...[your solid object or family]" - "Bounce"[/quote:uvckfnqi]

i tried it, seems to work, but the player object sometimes when i rotate it colliding with the wall, the player through the wall
B
10
G
2
Posts: 33
Reputation: 1,091

Post » Sun Aug 08, 2010 9:36 pm

Try using when "tank"->"is overlapping another object",->tank->bounce.
I think that will solve the wall thru popping.
B
7
G
4
Posts: 32
Reputation: 1,596

Post » Mon Aug 09, 2010 3:42 pm

[quote="Mascaroth":dmrp9d6p]Try using when "tank"->"is overlapping another object",->tank->bounce.
I think that will solve the wall thru popping.[/quote:dmrp9d6p]

thanks, it works, i had some problems when the player reach the border of the wall, but i solve it
B
10
G
2
Posts: 33
Reputation: 1,091


Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 5 guests