Sound rule

joey2ejoey2e Member Posts: 99
Hello all

I have two actors, the main character (I will refer to as char) and a small area (I will refer to as area)

I want a sound to play if the character is not in the area within 5 seconds and if the character is in the area within the 5 seconds I want points added to the score.

I have created a rule in char:

If char overlaps or collides with area:
Add 100 points to score attribute
OTHERWISE
After 5.1 seconds play sound

The problem I am having is the sound plays anyway regardless of what happens sometimes even at the beginning of the scene.

Any advice would be appreciated.

Joe

Comments

  • AsymptoteellAsymptoteell Member Posts: 1,362
    Make a rule that says if the attribute scene.time is < 5 and char overlaps or collides with area change an integer attribute (lets call it sound) to 1. Then mAke another char rule that says that if scene.time = 5 and sound=1 then play the sound and add 100 points to score.
Sign In or Register to comment.