scoring keep going up on it own

kirklandkirkland Removed Posts: 268
edited November -1 in Working with GS (Mac)
hi

how would you get a score keep on going up until it hits something
«1

Comments

  • jonmulcahyjonmulcahy Member, Sous Chef Posts: 10,408
    watch all these youtube videos:
    http://www.youtube.com/user/GameSaladCookbook

    and then try searching. It's been discussed MANY times before.
  • kirklandkirkland Removed Posts: 268
    i have looked at this please can someone tell me
  • kirklandkirkland Removed Posts: 268
    how to get a continuous rolling score without it being random
  • JamieOneilJamieOneil Member Posts: 877
    kirkland said:
    how to get a continuous rolling score without it being random

    Making a timer that every 1 second change attribute 'game.score' to 'game.score+1'

    if you want it to go up faster make is something like every 0.5 seconds.

    Jamie.
  • kirklandkirkland Removed Posts: 268
    this is not working
  • kirklandkirkland Removed Posts: 268
    this is not working guys
  • calvin9403calvin9403 Member Posts: 3,186
    make an attribute integer, set it to 0 call it score
    Making a rule if attribute score is less then 100, change attribute every 1 second to attribute score+1
  • StusAppsStusApps Member, PRO Posts: 1,352
    seriously, you need to do a lot more reading and tutorial watching.

    what you want depends very much on what is involved in your game, you have been far too vague.

    if it is a collision that stops the timer then maybe set some sort of attribute that triggers when that collisions occurs. This attribute would control whether the score is increasing or not. If it is temporarily stopping during collision then maybe use the overlap/collide option to stop start the score increase.

    Unless you can be very specific then I'm not sure anyone can help you.
  • kirklandkirkland Removed Posts: 268
    nope doesn't work
  • StusAppsStusApps Member, PRO Posts: 1,352
    ohhhh, hits something as in a target number

    in which case watch and read the score tutorials, they all work fine.
  • StusAppsStusApps Member, PRO Posts: 1,352
    kirkland said:
    nope doesn't work

    yep, does
  • kirklandkirkland Removed Posts: 268
    i will tell you guys what i want

    basically as soon as the game stars i want the score to accelerate until it hits the object . is that alright
  • StusAppsStusApps Member, PRO Posts: 1,352
    Still don't know what you mean, hits an object as in collides with another actor? If that's the case then:

    create game attribute called score and self attribute called hit.

    in one of your actors have:

    If actor overlaps/collides with actor of type 'whatever you want it to hit'

    change attribute hit = true

    otherwise hit = false

    Then a rule:

    If hit = true

    timer: every 1 second
    change attribute score = score+1
  • kirklandkirkland Removed Posts: 268
    no

    what i want is for for when the game starts i want the score to accelerate. until the actor hits an object, and thats when i want the score to stop
  • calvin9403calvin9403 Member Posts: 3,186
    StusApps said:
    Still don't know what you mean, hits an object as in collides with another actor? If that's the case then:

    create game attribute called score and self attribute called hit.

    in one of your actors have:

    If actor overlaps/collides with actor of type 'whatever you want it to hit'

    change attribute hit = true

    otherwise hit = false

    Then a rule:

    If hit = true

    timer: every 1 second
    change attribute score = score+1

    If hit = true
    should be If hit =false
  • StusAppsStusApps Member, PRO Posts: 1,352
    you're right, thanks :-)
  • kirklandkirkland Removed Posts: 268
    ok you start the game yes. the score starts accelerating yes. it stops when another actor hits an another actor. does that make sense
  • calvin9403calvin9403 Member Posts: 3,186
    kirkland said:
    ok you start the game yes. the score starts accelerating yes. it stops when another actor hits an another actor. does that make sense

    what does that mean?
  • kirklandkirkland Removed Posts: 268
    can you tell me how to do that in game salad in detail please
  • StusAppsStusApps Member, PRO Posts: 1,352
    ah ok, then what i said is correct. put the 'hit' rules in one of the actors that collides. if you don't want it to start again then take out the otherwise bit about changing it back to false.
  • StusAppsStusApps Member, PRO Posts: 1,352
    if you can't follow this then really you need to go and do some more learning with tutorials, videos and a lot of patient reading because if you are trying to make a game then their will be lots of things more complicated than this.
  • kirklandkirkland Removed Posts: 268
    just one thing i got down to the bit where it says true or false, where does it say that becuase i can't find it
  • calvin9403calvin9403 Member Posts: 3,186
    you have to type it yourself
  • kirklandkirkland Removed Posts: 268
    one last question i know i am sorry how do you make a self attribute
  • calvin9403calvin9403 Member Posts: 3,186
    http://www.youtube.com/user/GameSaladCookbook
    hit the plus button when you are in the actor
  • kirklandkirkland Removed Posts: 268
    i followed it and i do know what you are on about but the score is not changing when i start the game
  • StusAppsStusApps Member, PRO Posts: 1,352
    in which case then i think you need to go back to the very basics and read everything in the wiki and tutorials and learn about attributes, rules and where things go in GS. really by having someone dictate the exact rules to enter it is not going to help much. Sorry to sound like I'm lecturing, but you clearly have too many of the basics still to cover.

    sorry
  • calvin9403calvin9403 Member Posts: 3,186
    do you display the score
  • kirklandkirkland Removed Posts: 268
    yes i do
  • calvin9403calvin9403 Member Posts: 3,186
    take a screen shot about your rules
Sign In or Register to comment.