Fwumpy's Forum Posts

  • I tried:

    Create object "enemy" on layer "enemyLayer" at (ViewportRight(6),random(0,600))

    And it works. Thanks for your help!

    Is there a way to bound the player object to the Viewport instead of the layout?

    irina

    That's going to help me a lot, thanks! Is there an android version?

  • I'm trying to adapt my game to be suitable for multiple screen sizes, but I'm having trouble with 2 things.

    1) I want the player to be bound to the viewable screen, but I can't make the player solid because of game mechanics and I can no longer use the "Bound to layout" behavior because I'm using "Scale Outer" and I don't know what the width of the screen will be. No matter what I set the width of the layout to be, it won't be right for every device.

    2) I have enemies spawning on the right side of the layout, but now that the screen can be wider than the layout, they might spawn near the middle of the screen on some devices. I'd like for them to spawn out of view.

    The event I'm using for spawning enemies is this...

    Condition:

    System - Every 2.0 seconds

    Action:

    Create object "enemy" on layer "enemyLayer" at (800,random(0,600))

    The current layout is 800x600. Any help would be appreciated. Thanks!

  • Yann

    Thanks! I will try that.

    Roccinio

    Thank you for the longer explanation. I'm going to try that out too.

  • "P" for pause seems like the most logical and popular response, so I'm going with that.

    danialgoodwin

    Good point. I remembered that there was a reason for not using Esc, but I forgot what it was. Thanks!

    I can't use the space bar for pausing, because it's the "shoot" button right now. I like to use the space bar because it's in the middle of the WASD and the Arrow keys I'm using for movement. I want both left and right handed players to feel comfortable playing my game.

    Thanks again, everyone!

  • Thanks! I think I'll use Esc then.

  • I'm thinking maybe using P, Esc or Enter to pause my game, but I wonder if there is a common key used in browser games for pausing gameplay? I'm trying to make the controls as intuitive as possible. Thanks.

  • That didn't work, but thanks. Is there another way?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • just say when it is not in touch with your object but do not forget to add a trigger once while true otherwise it will trigger every tick

    So something like this?

    Condition: Trigger once while true

    Add Another Condition: Touch - X Is touching "nextButton"

    Action: System - Go to Layout "page2"

    I'll give it a try.

  • Is there a touch condition for "On touched object end" or someway to trigger an action upon the release of a touched object? I've looked, but I'm not seeing it.

    I have buttons to move between layouts and I don't want to load the next layout until the sprite button is released.

    Thanks.