do you think gamesalad should have this?

guillefaceguilleface Member Posts: 1,014
edited November -1 in Working with GS (Mac)
as i keep building my game, my player is having more and more rules, can instead of adding the rules to the player, add it to the other actor. for example if i have a new wall,let say on my player, when colliding with wall change player size,color, velocity to what ever,now if every little detail i have to add the rule to the player i will have alot of rules, can instead of that, do this, on the wall actor add rule, when colliding with player;change attribute OF PLAYER to what ever i want, this will reduce the rules on the player.

Comments

  • rlehmrlehm Member Posts: 320
    Maybe if there are that many collide rules, use tags?

    Example.. tag all your walls etc. Then just have one rule... if collide with TAG _______ do ________

    have a tag for bounce, and one for destroy (if ball game for example)
  • GLGAMESGLGAMES SingaporeMember Posts: 988
    you can have the rules on any actor, don;t have to be all in one unless it's a global one. just have attributes that changes when certain things happens so your actor just needs to check for the attribute change.
Sign In or Register to comment.