PSI's Recent Forum Activity

  • 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?

  • So in my game Psi, I'm trying to create a force field effect. The problem is getting the enemies on the far side to be behind it instead of in front of it in the z order. Here's what it looks like:

    <img src="https://dl.dropboxusercontent.com/u/60595907/Z%20order.jpg" border="0" />

    Anyone have any ideas how to get the zombies to the right of the force field to be behind it without throwing off the overall z order?

  • I am using Spriter in my game, "Psi." I am having a problem getting the animations to play fully when I choose "play animation from start." If I choose "play from current time" the animation will play but, of course, only partially, from whatever frame the previous animation was in. Mike from Brashmonkey explained that the animation is resetting itself every tick so you have to make sure it isn't already playing with a condition like "If current animation ISN'T _____" I have added this condition but the animation is still stuck on the first frame. Do I need to set up an instance variable that has a number for each different animation and switch it when the animations switch? Would that help? I know I am probably missing something obvious but this has really been challenging for me to get right. Thank you.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Yes. I was afraid it was going to be complex but it was so easy and looks so great! Thanks though. <img src="smileys/smiley1.gif" border="0" align="middle" />

PSI's avatar

PSI

Member since 14 May, 2013

None one is following PSI yet!

Connect with PSI

Trophy Case

  • 11-Year Club
  • x2
    Coach One of your tutorials has over 1,000 readers
  • Educator One of your tutorials has over 10,000 readers
  • Email Verified

Progress

14/44
How to earn trophies