How do I Football game

Get help using Construct 2

Post » Tue Jun 09, 2015 7:48 pm

Hello everyone,
I allow myself to ask you for help, I made a little prototype of a football game 2 players. Here I used the physics behavior to create a link between the ball and the player. But I find it not very optimized but I have no idea for the player with the ball does not get lost.
Any idea?
I attached my proto you thank you again for your help

https://www.dropbox.com/s/8n9quqm6so0u3 ... .capx?dl=0
B
4
Posts: 4
Reputation: 218

Post » Tue Jun 09, 2015 8:10 pm

Mixing physics-behaviour with any other behaviour is not wise..

If I understood what you mean with: " I have no idea for the player with the ball does not get lost"
I might be able to help..

For now I think you should either make the players have physics behaviour also or change the balls behaviour to bullet and play around with the settings untill it works like you want..
I told my dentist I had trouble with my teeth and asked her to fix it without looking in my mouth..
B
54
S
16
G
8
Posts: 6,160
Reputation: 19,775

Post » Wed Jun 10, 2015 5:55 am

Thanks for your answer,

I mean : when the player touch the ball, i don't want lose it ,if the player press the shoot bouton or if it's touch with an other player. I don't know if it's clear or not .

I think I shall tried your idea .

thanks a lot
B
4
Posts: 4
Reputation: 218

Post » Wed Jun 10, 2015 8:51 am

u mean u want the ball to stick near the player while running? u can try using pin, but then u have to disable enable it each time its going to shoot or deposes other players! that's kinda the only way to make it in a top view! which im guessing ur trying to make it! if u dont use the pin behavior u can use a boolean and a everytick condition to set the position and angle but then again is the same thing as pin behavior! :) hope it helped u!
B
78
S
23
G
69
Posts: 1,353
Reputation: 44,025

Post » Wed Jun 10, 2015 10:20 am

I guess you could set the football to selected on collision or based on distance and add actions to make it stay close to the player when selected..
Then on kicked set selected to false and make it move the way you'd like..
I told my dentist I had trouble with my teeth and asked her to fix it without looking in my mouth..
B
54
S
16
G
8
Posts: 6,160
Reputation: 19,775

Post » Wed Jun 10, 2015 11:16 am

gamecorpstudio wrote:u mean u want the ball to stick near the player while running?!
Yes it's this.
thanks for your support and your help this evening I try your solution and the LittleStain's solution.
B
4
Posts: 4
Reputation: 218


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 5 guests