0
Answered

Get Position / Set Position of Player or any other GameObject?

eagleeyez 2 months ago in Game Creator updated by Marti (Lead Developer) 2 months ago 1

Get Position / Set Position of Player or any other GameObject?

I cannot find any action to get position or rotation of game objects.

I would like to get the position of the player after it has completed a root motion animation and save that position to a vector3

Then I can reset the root motion to off and reset the player to that position so the player can carry on moving from that position onwards.

so we need get and set position,rotation and scale.

This has to do with my last post about root motion bug.

Unity version:
2018.4.12f
Game Creator version:
1.0.5

Answer

Answer
Answered

Hi EagleEyez! There's a specific Action for moving a character instantaneously around a scene called "Teleport Character". 

If you want to move a character over time you can either use the "Move Character To" Action, which is perfect for navigating around the scene.

If you want it to climb obstacles, use the "Character Mount" Action to disable collisions and then use the "Transform Move" action to indicate a destination and a duration.

GOOD, I'M SATISFIED

having such good support for game creator makes me want to learn it all and buy all of the modules.

Thank you.

Satisfaction mark by eagleeyez 2 months ago
Answer
Answered

Hi EagleEyez! There's a specific Action for moving a character instantaneously around a scene called "Teleport Character". 

If you want to move a character over time you can either use the "Move Character To" Action, which is perfect for navigating around the scene.

If you want it to climb obstacles, use the "Character Mount" Action to disable collisions and then use the "Transform Move" action to indicate a destination and a duration.