actors changed

djdeedjdee Member Posts: 180
hi,
can actors be changed using attributes... since there is no change actor behavior. for eg. when actor1 is clicked it changes into actor2
is this possible??

Comments

  • The_Gamesalad_GuruThe_Gamesalad_Guru Member Posts: 9,922
    You need to do more studying about gamesalad. Trying to create a game without properly learning the software is hard.
  • MotherHooseMotherHoose Member Posts: 2,456
    yes … @djdee … actors can easily be exchanged using attributes and events

    agree with @FryingBaconStudios … everything will be easier if you learn some things in GS … so do the Cookbook and the videos …
    you will save yourself much time and frustration and you wont be plagued with questions about how-to …

    @};- MH
    "Games lubricate the body and the mind." — Benjamin Franklin
  • djdeedjdee Member Posts: 180
    edited March 2012
    actually am trying to learning ...... was playing around with it and learnt a lot of cool stuff.... then this idea hit me.... nd i was wondering if it can b done in GS.....
    anyways thanks
  • CloudsClouds Member Posts: 1,599
    edited March 2012
    i was wondering if it can b done in GS.....
    Sure, just move one actor out of the way (off screen so it effectively disappears) and move the second actor from it's off screen position to where the first actor previously was. Basically have two actors, one off screen and one where you want it and simply swap their positions.


    +1 to what FryingBaconStudios / MotherHoose said too, a bit of practice with GS and I'm sure all this kind of stuff will become pretty straightforward for you.
  • djdeedjdee Member Posts: 180
    @tynan
    thank you... :)
  • MotherHooseMotherHoose Member Posts: 2,456
    edited March 2012
    good idea when you are trying to figure out ways to get things to work

    drag in a Note behavior
    list there when and what you want to have/make happen

    EX:
    when touched
    actor2 replaces
    actor1

    from that little note … you know
    you have to create a rule with the event: touch
    you have to have actor2 at that position … spawned at or changed to that position
    you have to have actor1 destroyed or changed to an off-screen position

    with such notes … your coding rules/behaviors are focused and easy to implement

    in other programmingEngines … the developer usually writes lots of comments before actually writing the code
    do so wish the NoteBehavior would have an enlargeable field … mine always seem to have to be scrolled thru

    @};- MH
    "Games lubricate the body and the mind." — Benjamin Franklin
Sign In or Register to comment.