help.. interfere between two roles
arabianwolf
Member, PRO Posts: 79
hi
i have two roles , first one if all enemy actors = 0 current scene go to next scene
second role if time up and reach 0 level faild
but i have interere between these two roles --- when all enemy actors =0 player cant go to next scene and stay till time up and level faild
i have two roles , first one if all enemy actors = 0 current scene go to next scene
second role if time up and reach 0 level faild
but i have interere between these two roles --- when all enemy actors =0 player cant go to next scene and stay till time up and level faild
Comments
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User
Hi arabianwolf As @tatiang & @PaxPax implied, more info as to your Rules at present would help.... (doesn't seem like you need any Interpolate behaviors either in this case, as far as I can tell...)
Still, try putting one of the rules in the otherwise section, see if that works out or you:
When all enemy actors = 0
Change scene go to next scene
Otherwise
When time up and reach 0 level failed
Change scene same scene
""You are in a maze of twisty passages, all alike." - Zork temp domain http://spidergriffin.wix.com/alphaghostapps
i will try to do that
@tatiang & @PaxPax .... lol sorry but english not my first language
I will be careful next time to selecting the correct words
timer
after 0.1 second run to completion is ticked
rule
if game.enemy actors = 0
do
change scene
go to level 2
else
rule
scene.gmae timer = 0
do
goto level failed A
You shouldn't need a timer at all.
The other thing to do is to have an actor with DisplayText set to game.enemy actors and place it on the scene. Then watch what happens to that value. You may be surprised to see that it's not what you think it should be.
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User
you surprise me , yes the wrong was in rule that contain ...... actors+1
yesterday i decided to check all my behavior in my project
and i found the mistake on that rule
now it working fine
silly mistake cause big headaches
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User