bangshi's Forum Posts

  • 6 posts
  • Thanks, this additional condition on my existing condition for the sprite worked without any alteration!

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Back again!

    I have a Sprite with the Platform behaviour. I am then simulating controls to make the player move automatically on load to the right.

    When the player reaches a certain position I want to increase the movement speed and send the player back in the other direction.

    To increase the speed I have the following event:

    PlayerSprite | X <= 500 | Add 10 to MovementSpeed and then Set Platform maximum speed to MovementSpeed

    It also then switches the direction from right to left, and I have another condition for when the player reaches the left side of the layout to again add more speed and send it back to the right.

    It works fine - but it is adding multiple amounts of 10 - so it is firing more than once when it changes direction. I am at a loss to why this is happening. Not sure if it is because the player seems to have inertia so spends more than one tick at an X position of 500 or greater.

    I tried having the condition being X is equal to 500, but it never fired because looking at the debug profiler it is never 500 exactly, it will be like 500.9875223355346567.

    How can I make it fire the once?

  • You are right. 173 is the latest stable, my bad, sorry! If you do update to the version 175 however, here is an example with the simplest way I can think off, without using any plugins.

    hanks, I have done so and yes this is a good start point for what I am after, I can take it from here I think!

    Thanks for your help.

  • Yes, jump like platformer, and return quickly compared to the time taken to jump up.

    The help needed is more what to use to get the object to move, as clearly I am not using the right things if nothing is happening in my uploaded project. The quickness can all be adjusted as they're just variables after all and this is my first attempt at this software and making a game so I am not familiar with what things have what affect on my objects.

    The latest stable is 173. 175 is the beta.

    I will try the plugins you mention.

  • Hi,

    Thanks for your response. Sorry I didn't feel they were vague instructions!

    Simply, when the left side is tapped I want the green block (Sprite2) to jump 'up' smoothly by 200 pixels. Then if the right side is tapped it will return to its normal position.

    In other words, tap the left side of the screen to jump, tap the right to cancel your jump.

    Unfortunately I cannot use your file because it is from a newer version.

  • Hello!

    Noob alert here!

    I'm just getting started with a mobile concept I have, and I'm stumped at the first hurdle

    I would like to tap on the left of the block to move the block up smoothly, like a jump and tap on the right of it to make it fall to ground quickly.

    I'd applied 8-direction behaviour to the block, and added a touch object and added to empty sprites as the touch target objects.

    In the event sheet I am looking for a touch on the objects and then setting either the Sprite.Y position to it's normal position, or 200 pixels above and I duplicated the same for mouse for testing in browser.

    However, nothing happens! If I add another action like to set a negative gravity it works, so I can see the touch/mouse events are firing, they're just not moving my block!

    Hopefully it is just something dumb on my part, my project is attached.

  • 6 posts