LukeWolf's Recent Forum Activity

  • Sorry I don't understand what that means.

  • Okay, thanks. I just have one more problem in regards to this issue:

    Person is underneath building. This is bad for buildings, but it's good when it comes to checking characters with characters.

    This is the good part about it, though:

    The person can go behind the building a bit on the right hand side.

    Now, I just need to consider the X value of the objects in the family. Here is the code at the moment:

    I have put the X value into an instance variable and an image point in the bottom corner of the building (this is the point I want to use to consider the Z order of objects), but I'm not sure how to get the family to consider the X value of all objects inside it. Every attempt I've made seems to not work properly.

    Is there a way to get all objects in the family to see if the X value is greater than the building before moving it behind it?

  • Thanks to both of you for your help.

    Dop, I think performance will eventually become a priority in my project as it will be quite large. Is there a way I can incorporate your solution but say if I had other characters? yoyoEleanor's example perfectly orders everything correctly regardless what object it is, which is exactly what I'm after because there could be other characters moving around that should have their X and Y taken into account as well.

    Also, it should be easy to also add the condition that X of the character is higher than the building in order to put the character behind the building with your examples, right?

  • Hello,

    I am trying to make my characters go 'behind' a building when their Y is lower than the building's Y and higher then the building's X (Because my graphics are going to be oblique, it should look like they are going behind the building if they come at it from the right a bit).

    I've put all of my building objects on the one layer and into a family called f_perception, as well as my characters. I've got this code in place to send objects in front and behind:

    Please note: the Char_box_Helper is in a container with Char_Helper

    It works for some buildings and not others, and I don't know why.

    Can I get some help with this one please?

  • Ahh, Kriand, I knew I was doing something wrong somewhere:

    I had this in a completely different group:

    i.imgur.com/wNufnCc.png

    The else statement was constantly forcing my criminal to keep going right.

    Thanks for helping, Kriand! I'm sorry for wasting your time. It goes to show I've had a long day in Construct. I might have a break.

  • Let me show you more of my project.

    Here are the members of the f_people family:

    i.imgur.com/T1DSRVp.png

    Both members have this instance variables. It is blank because it can contain different values for each member:

    i.imgur.com/lJiDx5i.png

    In the case of my original screenshot, my criminal should change his status according to the family instance variable, but it's not, so what am I missing?

    When I run the project, his status is "Walking Right" when he hits the "People_Boundary_Right" object, just like my civilian is doing, except my civilian is not getting stuck, he is changing his status, but my criminal is not. I don't understand.

  • Yes, it is.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Hey There,

    Here are my events:

    i.imgur.com/YyhqGKf.png

    I have two different "people" objects in my family. I added a second one after I wrote these events.

    The first person object responds fine, they will simply turn around when they hit the boundary, but the second person object will not.

    I don't know why. I thought if I simply put my second person into my f_People family, they would respond accordingly, but no the second person's status string variable does not change. Can anyone please help me with this?

  • I keep looking at this and I cannot fathom why the shooting enemy is not shooting anything:

    i.imgur.com/QqHFn5l.png

    Can I get a pair of fresh eyes on this one please?

  • Hey Maverick,

    Thanks for replying so quickly too. Sorry I took so long.

    Yeah I checked these, they were right 288 x 512. I actually discovered that my margins were really large for that size, they were 1000 x 1000. I made the margins 288 x 512, and this seemed to fix the issue.

    Thanks for your help, though!

  • Hi,

    I'm new to using Construct 3, and I noticed that after the first time the layout runs (which runs fine), it does this:

    i.imgur.com/ersyKNF.png

    It goes really small.

    Is it a setting or is this some sort of bug?

  • Perhaps it is a good idea, I will do it. Thanks again!

    Saying thanks to you all the time makes me feel like a bloody robot. :P

LukeWolf's avatar

LukeWolf

Member since 14 Jul, 2015

None one is following LukeWolf yet!

Trophy Case

  • 9-Year Club
  • Jupiter Mission Supports Gordon's mission to Jupiter
  • Forum Contributor Made 100 posts in the forums
  • Regular Visitor Visited Construct.net 7 days in a row
  • RTFM Read the fabulous manual
  • Great Comment One of your comments gets 3 upvotes
  • Email Verified

Progress

15/44
How to earn trophies