skalanine's Recent Forum Activity

  • So let's say I have an enemy object that gets spawned at game time. Construct 2 forces me to keep an instance of that object on the layout so it can be used. My problem is that turrets and distance measurements will detect this object even when it is outside the layout.

    If I delete the last object it warns me I'm deleting the last instance of the object and the game will not run.

    How do I prevent these objects from becoming turret targets or actually even being visible to players on in the layout?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I've quite a bit of programming experience but having a real mental block when it comes to arrays in Construct 2.

    I have two values from a coordinate on screen - an X and Y where the user clicked. I want to store them in an 5-1-1 array.

    My thought is to front push an X value and then a Y value but that doesn't provide the expected results. After 1 click this is what I have:

    Element Data

    0 700, 1200

    1 700, 0

    2 700, 0

    3 700, 0

    4 700, 0

    5 700, 0

    I'm really confused because I would expect that I have one element with the first two values and that is is. If I click again I get:

    0 700,1200,1200

    1 700,700,1200

    2 700,700,0

    3 700,700,0

    4 700,700,0

    5 700,700,0

    I think I understand what is happening however I can't use this method for storing waypoints in an array. Should I have two separate arrays an X and Y or use a different method (insert / set at) to set the values?

  • I see - good ideas thank you very much for your time.

  • I'm wondering if there is a way to make the window area (bounds) that scrolls in my layout smaller. For example I want a screen with a UI and a small scrolling window in the middle with the game objects moving.

    The real issue is I'm trying to figure out how to keep my game objects from going under my UI.

    I have a huge image for the scrolling world but only want to show a smaller amount of it at a time while the rest of the screen has UI objects on it. Not sure if that is clear or not.

    I suppose I could use a mask to show a little of the world in the middle but not sure if scroll to behavior would keep objects centered in it.

skalanine's avatar

skalanine

Member since 20 Jul, 2016

None one is following skalanine yet!

Trophy Case

  • 8-Year Club
  • Email Verified

Progress

9/44
How to earn trophies