Percentages..

lbc4everlbc4ever Member Posts: 18
edited January 2012 in Working with GS (Mac)
Hi all,

I'm trying to find a way to reduce my score by ten percent every time my actor takes a hit.. It's probaly me but I cannot figure it out for love nor money. Any help = much appreciated.

Many thanks,

lbc4ever.

Comments

  • MotherHooseMotherHoose Member Posts: 2,456
    changeAttribute: game.Score To: game.Score-(game.Score*0.1)

    but it is the term percent that is confusing you … we visualize it as 10% and not as what part of 100 …

    love I have bad luck with but money is easy! that's dimes/dollars!

    @};- MH
  • CloudsClouds Member Posts: 1,599
    What MotherHoose said or . . .


    when hit > then > gamescore = gamescore*0.9
  • lbc4everlbc4ever Member Posts: 18
    Thanks guys.. will adjust it now

    Appreciate the help :)

    lbc4ever
  • lbc4everlbc4ever Member Posts: 18
    Worked a treat btw

    Thanks for supporting the new guy...
Sign In or Register to comment.