Score changes attributes

B1984B1984 Member, PRO Posts: 91
Hi fellas,

Thanks for all the help, community! I'm really loving this engine and the supportive people involved. Now if you could just help me with one more problem: score that changes attributes! I'd like for the score to change the size of my character which seems easy enough but it's baffling me. Anyone have any clever ideas?

Comments

  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,949
    You'll need to explain more about how you want this to work. Are you expecting the size of your actor to grow proportionally as the score increases, so that an actor when the score is 100 is twice the size of an actor when the score is 50?

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

  • B1984B1984 Member, PRO Posts: 91
    edited February 2014
    Sorry about that. What I'd like is for every 1 point your character will grow 1px and for every -1 score your character will shrink 1px. Also, if your score reaches -10, you die. Does that help?

    EDIT: Also, I would like the score to change the difficulty. I know how to change the difficulty if I can figure out how to make the score a rule.
  • gyroscopegyroscope I am here.Member, Sous Chef, PRO Posts: 6,598

    Hi @B1984

    I'm sure @tatiang won't mind me answering for you: presumably your new points earned any one time are put into an integer attribute already, let's call that LivePoints.

    So in your character that changes size, add into its Rules:

    Change Attribute self.Size.Width to self.Size.Width+LivePoints
    Change Attribute self.Size.Height to self.Size.Height+LivePoints

    ""You are in a maze of twisty passages, all alike." - Zork        temp domain http://spidergriffin.wix.com/alphaghostapps

  • B1984B1984 Member, PRO Posts: 91
    Thanks, gyro! That did the trick.
Sign In or Register to comment.