boolean to destroy actor

HDIMappsHDIMapps Member, PRO Posts: 18

Okay, in my level, the character is supposed to approach a gate (actor). If the scene attribute, GateUnlocked, is set to true, it is supposed to destroy itself. However, when I tested the level, the gate did not destroy. The rule says that both (1)it has to collide with the player (actor) and (2)GateUnlocked must be true. Under the do, it simply says "destroy".

Any ideas?

Should I just change the attribute to be an integer, rather than a boolean?

Comments

  • SocksSocks London, UK.Member Posts: 12,822

    @HDIMapps said:
    Any ideas?

    Can you post a screenshot of this rule.

  • HDIMappsHDIMapps Member, PRO Posts: 18

  • HDIMappsHDIMapps Member, PRO Posts: 18

    let's see if this one is more zoomed in

  • Spalding004Spalding004 Member, BASIC Posts: 89

    Are you absolutely certain that the conditions setting "GateUnlocked" to true are correct?

    If they are not setting GateUnlocked correctly that could be your culprit.

    Are you constraining the position of the gate actor? This can negate collisions.

    Also, are you certain the player character is tagged correctly?

  • crestwoodgamescrestwoodgames Member Posts: 191

    Also make sure you are not trying to collide while interpolating. This will cause problems.

  • HDIMappsHDIMapps Member, PRO Posts: 18

    In this specific instance, the attribute is set manually. The gate destroyed on collision just fine before I added the GateUnlock requirement.

    What do you mean by constrain the gate's position? The gate is not movable, if that's what you mean.

  • HDIMappsHDIMapps Member, PRO Posts: 18

    Scratch what I just said. I removed the gateunlock requirement and still having the issue. Weird, because it worked before. Hmm..

  • HDIMappsHDIMapps Member, PRO Posts: 18

    Solved. Apparently, a restart of the program was in order.

Sign In or Register to comment.