Race scoring system? - PLEASE HELP IM SO STUCK!!!!

“PLEASE Gamesalad community I need your help! I have 3 actors racing each other (1 player, 2com controlled). How do I do 1st, 2nd 3rd place and dist points?”
I'Ve discovered I can use the current scene timer... I think this may help but I still can't work it our please
Thanks guys!!!
I'Ve discovered I can use the current scene timer... I think this may help but I still can't work it our please
Thanks guys!!!
Comments
I tried to think it through, but it made my head hurt. It's gone 4am here.
I'll try and give it another go tomorrow.
Sorry!
QS
Dr. Sam Beckett never returned home...
Twitter: https://twitter.com/Quantum_Sheep
Web: https://quantumsheep.itch.io
make 2 game attributes - booleans - "first place" , "second place" .
set them to false.
make this rules in all racing actor -
when ALL are valid:
collide or overlapping with "finish line"
"first place" is false
change first place to true
change self."what place am i" to 1 !
this is for the first place indicator.
another rule that say:
when ALL are valid:
collide or overlapping with "finish line"
"first place" is true
"second place" is false
change "second place" to true
change self."what place am i" to 2 !
this is for the second place indicator.
and for the third do:
when ALL are valid:
collide or overlapping with "finish line"
"first place" is true
"second place" is true
change self."what place am i" to 3 !
and you can use "self.what place am i" to whatever you want
Cheers
Glad POM could help though - nice one fella!
QS
Dr. Sam Beckett never returned home...
Twitter: https://twitter.com/Quantum_Sheep
Web: https://quantumsheep.itch.io
Let us know if the above doesn't work and we'll try to get you going.
I saw the Mighty Boosh in 2001 at the Philadelphia Fringe Festival.
My friends and I are big fans!
Old Gregg!
"I don't accessorize. I'm Howard Moon. There's a simple truth to me."
Dr. Sam Beckett never returned home...
Twitter: https://twitter.com/Quantum_Sheep
Web: https://quantumsheep.itch.io
Thanks in advance
Thanks
create "self.i know my place" - boolean - false.
and create a rule - when "self.i know my place" = false
put here all the rules mentioned above
and to each rule add another change attribute below - change self."what place am i" to -
add - change self.i know my place to true
so that the rules will not be checked after the actor knows its place (and its good for memory uses , its a switch )
I have put those those rules in all all my actors however still all I get is 3 as the result for all of them. What am I doing wrong?
I have taken some screenshots of my actor rules here:
https://idisk.me.com/lukeallen1986/Public/Gamesalad Help/1.png
https://idisk.me.com/lukeallen1986/Public/Gamesalad Help/2.png
https://idisk.me.com/lukeallen1986/Public/Gamesalad Help/3.png
I Have done a little bit of work in Gamesalad but I am still abit of a noob sorry about this!
2) on the second and the third rule move "i know my place to the top so that it will
be the first change! the order of the things is very important, check the rules for logical order
if it still dosent work tell us more about what is going on in the scene, and we will figure it out
*I have 3 actors and in each one i have created two locals attributes (what place am I & I know my place)
*in each actor I have created a big rule that says
When self.I know my place is false
( and inside this rule I have 3 other rules 1st place, 2nd place, 3rd - see screenshot @ https://idisk.me.com/lukeallen1986/Public/Gamesalad Help/4.png)
*Each of these rules is basically what "p.o.m" said in his first post with "rebumps" adjustments
"make 3 game attributes - booleans - "first place" , "second place" , "third place"
set them to false.
make these rules in all racing actors -
when ALL are valid:
collide or overlapping with "finish line"
"first place" is false
Change self.I know my place to true
change first place to true
change self."what place am i" to 1 !
this is for the first place indicator.
another rule that says:
when ALL are valid:
collide or overlapping with "finish line"
"first place" is true
"second place" is false
Change self.I know my place to true
change "second place" to true
change self."what place am i" to 2 !
this is for the second place indicator.
and for the third:
when ALL are valid:
collide or overlapping with "finish line"
"first place" is true
"second place" is true
"Third place" is true
Change self. "I know my place" to true
change self."what place am i" to 3 !
Thats basically it. All that's happening is 3rd is being displayed 90% of the time. On the odd occasion 2nd appears but have no idea why.
Also as I mentioned previously the racing actors are falling from the sky and the ground Is essentially the finish line...
What am I doing wrong????
Thanks all for your ongoing help and support
Used a slightly different approach which I will explain abit later. I'm excited so I really want to finish my game but will post when done
Thanks to all who helped. I have actually included a little reference in my game to you guys
Cheers
https://idisk.me.com/lukeallen1986/Public/Gamesalad Help/5.png
Basically just One big rule that calls on 2 self attributes and 1 global attribute. (they are named in p-o-m-s above posts. thanks mate for that
Also my game "Flying Fox is finished now and submitted to Apple. I will announce it when it goes live if you want a promo code let me know
I have been trying to follow the instructions in this thread as I am trying to do the same thing but I am having a little trouble as I cannot access the screenshots provided by MightyBoosh.
Can someone please explain the process again? Any help is greatly appreciated.
Thanks.