A0Nasser's Recent Forum Activity

  • Thank's for the quick replies.

    The camera will stick to the player every tic without lerp, And In some situations i want the camera to move smoothly to left or up or even more to the right then stick there.

    If i use lerp the camera will follow the player, Sometimes the player will fall and the camera need x of time to reach the player.

    And if i use the code without lerp : set camera to player.x+200 and player.y-100..for example, It will work perfectly but the problem when you move the camera to new positions, it move in 1 tic not smoothly.

    Forgive my english

    And thank's for interest

  • I have more than 50 sounds in my game.

    When the player in main menu i preload 5 sounds that will play in the start of the first layout.

    When the player in the first layout i preload the rest of the sounds.

  • Hello all

    Aphrodite can you or anyone please show me how to make the camera move to different positions smoothly then stick every tic to the player until i move it to another place.

    My game is platform and the player will fall from height places and jump...etc.

    I'm using this global variable :

    Position = 0 --------- camera set position to : lerp(Self.X, Player.X+200, 1*dt)

    Position = 1 --------- camera set position to : lerp(Self.X, Player.X-100, 2*dt)

    ......etc

    And because of (x*dt) the camera will not stick 100% in the place.

    And if i deleted the (x*dt) or make it more less the movement between positions will not be smooth.

    Thank's for any help

  • System - Every x second ---- System create "object" on layer "0" on "random(xx,xx)

  • Did you see the Vertical space shooter example in construct 2 engine.

  • How did you make the zoom?

    Global variable : zoom = 0

    System - zoom = 0 ----- System - set layout scale to : lerp(layoutscale, 1, 1*dt) ------- normal zoom

    System - zoom = 1 ----- System - set layout scale to : lerp(layoutscale, 0.6, 1*dt) ------- zoom out

    System - zoom = 2 ----- System - set layout scale to : lerp(layoutscale, 1.4, 1*dt) ------- zoom in

    And what did you mean about force rotate?

    Are you using the rotate behavior?

  • Did you try this event :

    On start of layout --- Audio - play sound 1 not looping tag "X"

    Audio - on tag "X" ended --- Audio - play sound 2 looping

  • Your game for mobile or pc?

  • Check this tutorial :

    https://www.scirra.com/tutorials/450/timers

  • You need to change the roll of factor value, In the audio plugin properties.

  • You don't need to add solid to the powerUp.

    Check the last events in the capx, I hope this what you need.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Can you upload sample capx?

A0Nasser's avatar

A0Nasser

Member since 2 May, 2014

None one is following A0Nasser yet!

Trophy Case

  • 10-Year Club
  • x2
    Coach One of your tutorials has over 1,000 readers
  • Email Verified

Progress

12/44
How to earn trophies