Chezzy's Forum Posts

  • Any way I can do that? Like I said, I tried "For each 'Friendly' in order of 'Friendly.Y' Ascending" - "paste to canvas" but it only pasted the lower most sprite.

  • I'm making a split screen game and I'm running into trouble with the canvas object. I want the 2 sprites (which are in the family object) to go behind the other if it's Y is higher, as you'd expect. However, I have no idea how to do this using the canvas object. I tried "For each 'Friendly' in order of 'Friendly.Y' Ascending" - "paste to canvas", but it would only paste one of the sprites and the other wouldn't even show up.

    Here's my .cap: http://www.mediafire.com/?c8mv38tb11qsszn

    The events in question are in "Layout 1 events"

  • > Care to share your results?

    >

    yeah, i am kind a interested too

    EDIT:

    okey i actualy find my answear lol. as always it was in front of my nose shining with obviousity.

    but i havent tested it so far.

    RTS+8Direction behaviour(setting 8dir with just 4direction)

    Nope, I tried that too and it didn't work.

    In the end I just used the rts object but had a few events that made it so it had only 4 directions. It still can move diagonally but after making it I found that this effect works better for my game anyway.

  • Never mind, I found a work around using the RTS object.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • i would try combaining RTS and Grid Behaviour.

    RTS and grid movement are two different behaviours, they won't combine with eachother. It didn't work.

  • Hi, is it possible to have an object pathfind after the player, but move in only four directions? I've tried the RTS behaviour but I don't know how to get the object to only move in 4 directions.

  • Never mind, I got it working.

  • Hi, I'm making an energy bar in my game and I'm having problems. Here's what I'm trying to do:

    There are 3 variables I'm working with, Energy (your current energy) Maxenergy (your maximum amount of energy) and Energycap, a cap within your energybar which goes down slowly over time, and which your energy cannot surpass. You can restore your energy by resting, but to restore your energy cap to full you must sleep.

    The problem is simply a visual one in the Hud. As you'll see in the .cap file, the energycap goes down properly, but the energybar goes up when it should be at the same level as the energy cap.

    Here's my .cap file: http://www.mediafire.com/?ndqnf89pm6xpbua

    The events associated with the energybar are under the "hud" comment.

  • Well, I just got back home and it's not happening anymore. Looks like it could have been a bug, but I have no idea how to replicate it.

  • Hi, whenever I try to select a sprite in the layout editor using the left mouse button, it does not select the sprite. And whenever I click and drag, it does not create a selection box, instead it moves the entire screen. Is this a bug, or have I turned on some option somewhere to do this?

  • Thanks PixelRebirth, I can use this

    I've been off and on with construct for the past year due school and other personal things in my life, I'm just getting back into it now. I didn't notice that PM, sorry! My old projects are pretty much dead now. But rest assured, this project I'm working on now is much deeper and more planned out. At the moment I'm just working out some stuff (like this health bar) but I'll probably make a development thread soon.

    Again, thanks for your help

  • I'm trying to make a health bar and a mana bar for my game. The bar is 100 pixels wide at max, but the player health can be from 10 to 500 health depending on their level. As long as Playerhealth is the same as Maxplayerhealth, the bar should be full (100 pixels). What is the easiest way for me to do this?

  • Thanks R0J0hound, you've been a great help

    I'll update this thread if I run into any more z order problems.

  • Ah ok, I get it. Just one question, how do I find the Y coordinate of a family? I've added all 3 trees to the Terrain family, but I can't seem to find it in the event editor.

  • Hi everyone!

    I'm making a game and it's been smooth sailing so far, but I've run into my first problem. Z order.

    The player should go behind the trees when he is above them, and in front when he is below them. This only happens for some trees, the rest just don't work properly.

    Here's my .cap: http://dl.dropbox.com/u/7129504/Rpg.cap

    The code for the z order is at the bottom of the events list. Am I doing it wrong? Is there a simpler way of doing this?