0
Answered

Hi,I have a gameObject in a continuous routine moveTo I…

Klaude Charlier 5 months ago in Game Creator updated by Marti (Lead Developer) 5 months ago 1

Hi,
I have a gameObject in a continuous routine moveTo

I need that this object moved backwards at each impact on it.

Is there a way to make something as simple as:

on collide

  • transform.parent.position.z -=1;
  • with the gamecreator tools, without creating a dedicated component?

    if i made another moveTo, it seems that the movements are relatives to the global and not relatives to the actual position

    thx

    Unity version:
    Game Creator version:
    Answered

    Hi Klaude;

    I made a separate topic for your question so it's better organized.


    Not sure if it's going to work on characters (if you're using one), but you could try using the Transform action. Change the position to (0,0, -1) but set the space in "Self" instead of "Global"

    Hope this helps!