could help me??.

hello I'm new to GameSalad. I wonder if someone could help me, and explain how it could make a teleport to a destination and several destinations in which multiply the teleported object. Thank you

Best Answer

  • ericzingelerericzingeler Posts: 334
    Accepted Answer
    I noticed that you didn't say "move"... and you're actually not far from the truth here.

    When first starting out, its seems like peeple struggle with how objects/actors move in games. Changing an actor's position attributes is pretty much a teleport type of concept if you wanted a real world translation.

    As @KevinCross suggested, change actor positions to teleport and spawn actors to multiply them.

Answers

  • KevinCrossKevinCross London, UKMember Posts: 1,894
    You can move an actor by changing it's x and y coordinates with Change Attribute i.e.

    Change Attribute Self.Position.X To Position X of your teleport
    Change Attribute Self.Position.Y To Position Y of your teleport

    Look at the spawn behaviour if you want to create copies of the actor in different locations.
  • -Timo--Timo- Member Posts: 2,313
    edited August 2013
    you also can destroy this actor and let it spawn somewhere else (using a boolean)
    but changing his position also should work :)

Sign In or Register to comment.