Have actor change image of other actor?

RolentoRolento Member Posts: 9
edited November -1 in Working with GS (Mac)
I just want to make a button actor that changes the image of another actor when you click it. How do I get this to work?

I just started with gamesalad coming from gamemaker and was trying to self learn this. Thanks in advance.

Comments

  • rebumprebump Member Posts: 1,058
    I think there are one or two other threads/posts on this sort of thing already. Use the spyglass search in the upper right corner of this web page. At the bottom of the results will be a link to a comparable Google search of the forums, you can click that for more results too.

    I'd explain here but I am pretty sure I remember seeing some posts for such and no use re-inventing the wheel and/or cluttering up the forums further.

    [off to see if I can find one for you...]
  • rebumprebump Member Posts: 1,058
    http://gamesalad.com/forums/topic.php?id=3170#post-17997

    http://gamesalad.com/forums/topic.php?id=2965#post-16468

    and be sure to read:

    http://gamesalad.com/forums/topic.php?id=2939&replies=7#post-16504

    as it shows that image name string concatenation can be used in the expression editor for image name.
  • RolentoRolento Member Posts: 9
    thanks, sorry about that
  • RolentoRolento Member Posts: 9
    ... ok I followed the first example and feel dumb because I did everything stated there and even did it two times to see if I was messing up but it wont work.

    The variables are global and seem to be working but when I press my button the image of the other actor dosnt even want to change >_<
  • rebumprebump Member Posts: 1,058
    And you have the actor who is to change looking for the change in the game attribute that triggers it?

    Did you wrap it in a timer to check for change ever-so-often?
  • RolentoRolento Member Posts: 9
    hmm... didnt realize it had to be in a timer. I thought it was always away but I'll look up timers now ^_^
  • RolentoRolento Member Posts: 9
    ok I think i found my problem >_<

    it was that I was using "TRUE" instead of "true" .... -_-
  • rebumprebump Member Posts: 1,058
    Yeah, I would hope that it wouldn't need to be in a timer but I have heard from others that the newer 0.8.x versions are requiring such but I don't know. I have seen evidence supporting that both ways. I sometimes wonder if the GS execution engine is flakey (i.e. inconsistent) in its handling of behaviors or maybe it is just down to it can only do so much on each pass and some things are excluded!? Sometimes it is trial and error and the solution is wrapping a timer behavior around it. I think I know how the engine is supposed to be running but I always run up against a few situations that seem contrary to what seems logical.
Sign In or Register to comment.