Swap Location of 2 actors in GameSalad .... help plz

arabianwolfarabianwolf Member, PRO Posts: 79
edited April 2013 in Working with GS (Mac)
hi
i did the same thing in the Video you show for swap location of 2 actors

it work fine for 3 or 5 pressing and every 2 actors is swapping fine but after that when i press one and press the other actor what happened that the first actor Disappeared
in your video you use 1 same actor but i have 6 different actors
i use the same rules you made ?

Comments

  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,949
    Not sure about the TSB version, but here's one I made.

    New to GameSalad? (FAQs)   |   Tutorials   |   Templates   |   Greenleaf Games   |   Educator & Certified GameSalad User

  • arabianwolfarabianwolf Member, PRO Posts: 79
    thank tatiang
    i will try it
  • arabianwolfarabianwolf Member, PRO Posts: 79
    @tatiang your demo also not working some object will gone if you press many time here and there for 1 minute
  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,949
    @tatiang your demo also not working some object will gone if you press many time here and there for 1 minute
    Sorry to hear that. I haven't had any problems with it but it's probably because I haven't used it for an extended period of time. I pretty much build the demo and stored it away until someone asked about it. Hopefully it gives you an idea about how to swap actors, though.

    New to GameSalad? (FAQs)   |   Tutorials   |   Templates   |   Greenleaf Games   |   Educator & Certified GameSalad User

  • arabianwolfarabianwolf Member, PRO Posts: 79
    the problem you cant swap for long time , if some one can fix it
  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,949
    The logic behind the demo is this:

    Click on first actor --> store its position in x1,y1
    Click on second actor --> store its position in x2,y2
    If two actors have been clicked (slight delay might be needed here) --> store x1,y1 in x3,y3
    Change first actor's position to x2,y2
    Change second actor's position to x3,y3

    Maybe you will be able to build it yourself.

    Sometimes, when actors disappear/misbehave when clicked too quickly or repeatedly, you have to add timers to slow things down.

    New to GameSalad? (FAQs)   |   Tutorials   |   Templates   |   Greenleaf Games   |   Educator & Certified GameSalad User

  • RUPASRUPAS Member Posts: 823
    @tatiang Hello friend, I have tested your swap locations, and does not work well, the pieces disappear constantly, I tried to put timers but still malfunctions, any ideas?
  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,949
    The actors are moving to the same location (overlapping completely). Not sure why... sorry!

    New to GameSalad? (FAQs)   |   Tutorials   |   Templates   |   Greenleaf Games   |   Educator & Certified GameSalad User

Sign In or Register to comment.