combo scoring
djdee
Member Posts: 180
hi,
I have an actors called evil that when touched it destroys and changes attribute to game.score to game.score+200. i have created another actor called combo and a game boolean attribute called double. In the combo actor, when it is touched it destroys and changes attribute game.double to true and in the same rule theres a timer that say after 3 sec change attribute game.double to false. In my evil actor i have passed rules that if attribute game.double is true change game.score to game.score+400. it seems to work fine. but game.double does not go to false even after the timer is set continues going on after 3 secounds and never goes.
I have an actors called evil that when touched it destroys and changes attribute to game.score to game.score+200. i have created another actor called combo and a game boolean attribute called double. In the combo actor, when it is touched it destroys and changes attribute game.double to true and in the same rule theres a timer that say after 3 sec change attribute game.double to false. In my evil actor i have passed rules that if attribute game.double is true change game.score to game.score+400. it seems to work fine. but game.double does not go to false even after the timer is set continues going on after 3 secounds and never goes.
Best Answers
-
youdvdk Posts: 21maybe put a timer and change attribute behaviour in otherwise, and set that to something like timer- after __ seconds change attribute game.score to game.score+0.
i hope this helps if you haven't found a solution already. -
jckmcgraw Posts: 647When you destroy the actor, the timer cannot run because the actor is destroyed. That's why it isn't triggering.
Answers
Also, do you really need a boolean and rules to check it?
Wouldn't it be easier to make the double variable an integer and then just multiply the score with it when adding to score?
That way you wont need to check if it's true or false
yes, i have checked the run to completion on the timer
no its not compulsory to have boolean
thanks for the suggestion will try doing it and will let u know if it works... thanks
Do you have the timer behavior before or after you destroy the actor?
Try putting the timer behavior first, maybe that's the issue
i tried as u said but its the same issue.. it does not work. it adds combo points but after that it does not stop adding it.
If so, maybe move the timer behavior to your player actor instead? Make a collision rule and put it there
i tried shifting the time up too. i dont know whats not stopping it.. if u dont mind ill send u the file pls have look
I'm at my mac now so send me the file and i'll take a look or you can just upload a screenshot to an image host and i'll have a look there
http://postimage.org/image/g8tgke4nv/
http://postimage.org/image/v61xlehwb/
http://postimage.org/image/xc0ttnaqj/
and if u want me to send the file pls give me ur email id
Did you try simply deleting your time behavior and making it again?
Oh and don't use the expression editor (the small e button) when typing true or false
Worth a shot
no i dont use the expression button for true or false.
and without timer i dont think u can do this... cuz u need to tell the double power when to stop adding double points... so i guess it is important to use timer.... can u give me ur email id where i can send the file so that u can have a better look... thank u for ur patience and suggestions..
Yea, i meant deleting the timer and then remaking it:p
Send the file to jn2002dk@gmail.com and i'll take a look at it
hey
i have mailed u the file pls have a look..
for some reason even i cant open ur file that u mailed me. can u please share screen shots or explain how did u get that thing working. thank you
hey @jckmcgraw - yes it does not do that...
yes i got it.. and it works .... but just 4 my knowledge i wanna c wht are the other ways that we can do this....
Was worried for a second that you never got it:)
thanks jn2002dk .... ur very helping and friendly.......