mmmoustache's Recent Forum Activity

  • Awesome, this works! Thank you

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Hi all,

    I have a quick question regarding embedding my Construct 2 game in an iframe; my game is a simple platform game using the arrow keys as controls but whenever I press the down key in the game it also triggers the browser window to scroll down therefore the canvas element is moved way off screen when on a long page. Has anyone occurred a similar problem and had a successful outcome? I'm struggling to find a solution myself; I've tried preventing the default browser functionality with javascript but I can't get that to work either. <img src="smileys/smiley7.gif" border="0" align="middle" />

    Kind regards,

    mmmoustache

  • wow, thanks a lot - that fixed it. This software is almost too good!

  • Hi Everyone,

    I'm currently embarking on my first Construct2 project - a basic platform game - and I'm having some difficulty integrating animations along with controls. My player can jump, crouch and move left or right and I've set animations to trigger once any of these actions are in motion. Here's where I'm having difficulty:

    Occasionally, whenever my player is moving and I try to jump, the jump is ignored. This didn't happen before I created the animations, so it's led me to believe that whenever a certain frame of the moving animation is 'active', the jump is ignored. My animation "Walking" is the only animation that uses a loop (it's only two frames), every other animation is a single frame.

    Here's my events sheet for my player:

    Player: Platform is on floor

        - Player: Platform is moving = Player: Set animation to "Walking" (play from beginning)

        - Player: Platform is NOT moving = Player: Set animation to "Idle" (play from beginning)

        - Keyboard: Down arrow is down = Player: Set animation to "Crouching" (play from beginning)    

        - Keyboard: Down arrow released = Player: Set animation to "Idle" (play from beginning)

    Player: Platform is NOT on floor

        - Player: Platform is jumping = Player: Set animation to "Jump" (play from beginning)

    Can anyone see why my problem is occurring? Is there a standard/bulletproof way of integrating animations with movement?

    -moustache

mmmoustache's avatar

mmmoustache

Member since 4 Dec, 2012

None one is following mmmoustache yet!

Trophy Case

  • 11-Year Club
  • Email Verified

Progress

12/44
How to earn trophies