PSI's Forum Posts

  • In your "events" menu at upper left of screen choose "add group."

  • In my game, Psi, I'm trying to set the z order of a spriter object that spawns from her hand to the z order of a collision box that spawns at her feet. Is it possible to do that?

  • Add a sub event to key pressed, trigger once. Set the effect looping. On button released, quit playing.

  • Thank you for the example Guizmus!

  • I'm trying that right now but having a hard time gtting it in right. Could you be specific of how to set the global variable with it?

  • Thank you Guizmus!

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • In my game, I'm making Psi's health a global variable. From the start, I want her to have some basic health and energy regeneration. How do you set the upper limits of this so a +1 health won't go higher than the variable?

  • Thanks everyone for your help but I ended up making an entirely different forcefield effect in Spriter. I think what I was trying to do may be impossible because you had to have both ordering by y and by x and the two were, inevitably, in conflict. Here's a screenshot of the alternative effect I came up with.

    <img src="https://dl.dropboxusercontent.com/u/60595907/Screenshot%202014-02-17%2023.15.jpg" border="0" />

  • zatyka In order to keep my fragile z order intact, I am trying to modify the events you shared with me to move ONLY the forcefield. Here's what the events currently look like:

    <img src="https://dl.dropboxusercontent.com/u/60595907/Screenshot%202014-02-17%2014.32.jpg" border="0" />

    If I moved the individual sprites to the layer above or below or even move them up and down within their own layer, it throws the whole z order off. Can you see what I'd need to change in my current code to make this work? Thanks so much!

  • Thanks! I'm going to try this!

  • That wouldn't work because I want the characters on the front side to be in front of it and all of the characters still need to keep the relative z order. I still haven't solved this problem. Seems like a tricky one to me. :(

  • Here is the basic event:

    <img src="https://dl.dropboxusercontent.com/u/60595907/Screenshot%202014-02-15%2018.13.jpg" border="0" />

    The trick is that I'm using regular sprites for the collision boxes and spriter objects for the actual animations. One problem I'm having, for instance, is keeping the range attack of Psi in the right z order. The actual collision box for the attack is generated from the box around her shadow so it's at a lower level than her visible blast attack.

  • Thank you, sounds good! Are you having wacky issues with z ordering your game? I find there to be a lot of conflicting variables...

  • Joannesalfa

  • What do you mean by compare distance with instance variable?