TheDanAffair's Forum Posts

  • 3 posts
  • Hi, so this thing I'm working on is intended to basically toggle whether or not something is activated or not upon a press of the spacebar. Basically I have an item that sits in the room and I want it to be so that when I press spacebar it toggles between that item and a different sprite object. I can get it to go one way fine by saying "On Space pressed Spawn Plant && Destroy Pod" but I would like it to be a togglable, so that I can press space and it will either destroy the Pod and spawn the Plant, or vice versa.

    I'm just really struggling with the syntax of this and am not really sure how to structure my events to do this. I played with instance variables but none of them really accomplished what I wanted to tell them to do.

    Thanks.

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • This was exactly it! Thank you very much. It was a little obnoxious being able to work one half of it and not the other, and I was confused about which other events or actions I should be calling for this. But this fix worked perfectly.

  • So this is seems like a bone-headed inquiry, I'm hoping I'm just missing something all too obvious.

    Basically I have exp that homes towards the player when they're near it. I have the behaviors on the player and exp that work great!...For the first instance of the exp that spawns. If I have 5 instances of exp, the only one that will home to my player is the one that spawned first, and all will behave like it does. How do I make it so they all behave independently and if I get close to any of them they will home on me, not just the first one spawned?

    I can provide samples of my event sheet if it would help clear anything up.

  • 3 posts