Vavacav's Recent Forum Activity

  • What's the best practice for organizing your code when you want multiple ways to control the game? For me, I want to be able to use Keyboard(WASD and Arrow Keys), Analog stick on Xbox controller, and Dpad on Xbox Controller.

    I don't want to put all four "LEFT" inputs into each line of code for what should happen when pressing Left. Do I just use one input to make my game, and then later, copy the code three times, into four groups, replacing the relevant inputs, and enabling the group that the user chooses?

    Ideally, I'd like to say, when you press A, LEFT, Dpad Left, or Analog Xaxis -75, simulate a global thing called LEFT. Then, I can write code from there: When global thing LEFT, action action action etc. Obviously, I thought of using a global, but this doesn't seem like a great practice(though I'm very new). Am I wrong?

    So, what's the best/better approach in organizing code for multiple ways to input LEFT?

  • Hmm...Thank you.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • dropbox.com/s/jcx9a3djlcm1p0i/Fit%20Into.capx

    Newbie...

    Why doesn't a 16x16 sprite fit into a 16x16 hole? I know there are some issues with the program dealing with very small objects, but it doesn't work for 250x250 sprites either.

    All of the bounding boxes are the default squares. I'm using 8Direction Movement(set to only 4 directions) and the Solid behavior.

    Is there a feature I'm overlooking to get this to work?

  • Thanks for the replay, but FullBlack IS set to global already. And it covers some things (Menu, MapCoordinates, Rupee Count) but not the hearts...

  • dropbox.com/s/3rw44umhr3sxe3t/Zelda.capx

    r139

    Newbie Here. I have a quick question about Z ordering. It's also my first question asking for help. (Tell me if the dropbox file doesn't work.

    (I'm recreating Zelda, to learn the ropes.)

    I'm trying to debug a small issue with Z ordering. I can easily use a work around, but I want to understand if I'm doing anything wrong, or how the Construct code is working, so I can better understand it for the future.

    The project is cut down a lot in an attempt to debug. There is only two layouts to pay attention to. (Main and Map22) and two event sheets (esMain and esMap22)

    Go to Main and preview it. (I'm using Chrome)

    What I expect: You shouldn't see the three hearts on the bottom of the screen. The Z order tells me that FullBlack should be on top of it.

    Now, if you disable "Go To: Map22" in esMain, it displays how I think it should.

    So, by including that second layout, it screws up my Z order on the first layout?

    Thanks for you help.

Vavacav's avatar

Vavacav

Member since 13 Aug, 2013

None one is following Vavacav yet!

Trophy Case

  • 11-Year Club
  • Email Verified

Progress

12/44
How to earn trophies