Hi guys wuzap?(btw i just became a regular!)
So i have a soccer player who will not link with the ball for some reason, unless i misunderstood what it means by link it means to connect right? well i put a condition if player is in collision with ball then link but it dosent.
screenshot down below.
But if you want to put the ball in front of the player, you can :
Make a point inside the player object (you can call it something like “BallPos”).
Make a variable and set its type to boolean (you can call it something like “BallLinked”) and set it to False by default.
Then, when BlueCharacter1 is in collision with soccerball2, change the boolean variable to True.
And make an event where if the boolean variable is true, then change the position of the ball to the position of the point.
@asimple_dev@zGameCreator
Link two object is not extension is just action
And its tricky to use
It do matter do you check in condition
Take into account objectA linked to objectB
Or
Take into account objectB linked to objectA
On top of that if you have 1 object that can link to many but only one at a time
You need to un link it first from other objects
When it comes to ball i see a lot of issues
Cause how you gonna tell which player should get linked to ball when multiple players are in collision with ball?
How to select which player should not be linked?
BUT it would vary depending on what game we are talking about?
Foot/Basketball? I would say object linking would cause more issues than good
If you create point for example calling it BallPos
And your object is called BlueCharacter1
Then in x and y you type BlueCharacter1.PointX(“BallPos”) BlueCharacter1.PointY(“BallPos”)
But again if 2 characters will collide with ball
How you gonna determine which should have bool var set to false and which to true?
I atm don’t have idea for that
But it is not impossible
For sure there needs to be a way
Yeah cause if you don’t have variable to tract direction of player
Then you should have only right animation and when you want player to turn left
You should flip player animation horizontally