Tuiii's Forum Posts

  • use repeat N times combined with a variable that will control which objects were already picked

    submit a .capx for detailed help

  • Pick nearest/furthest under objects conditions

  • rexrainbow

    One more question, is it possible to prevent player from clicking the YouTube logo and send the browser to the youtube page?

  • Check Physics : Joints

    also check pin behavior

  • Hey, I see you said that right now it isnt't possible to show other objects above the video. Although I dont need the video to be playing when I want the objects to appear, so I thought about taking a canvas snapshot but the snapshot won't show the video contents.

    Any idea if that can be achieved?

  • no math genius here but ellipse equation worked pretty well

    https://dl.dropboxusercontent.com/u/231 ... index.html

    Capx: https://dl.dropboxusercontent.com/u/231 ... lipse.capx

  • You can store the variables values in the array and check the array value instead

  • create variable with initial value 5

    every 0.1 seconds --> subtract 0.1 from variable and set text to variable

    variable < 0 --> set variable 0

  • just disable the scroll to behavior

    the event every tick --> scroll to player.Y is enough

  • use lerp function and restrictions with variables

    here, try this

    https://dl.dropboxusercontent.com/u/231 ... mooth.capx

  • use browser object

    https://www.scirra.com/manual/110/browser

  • Can't be other thing besides collision polygons.

    Maybe the balls in the chain are causing that?

    Without the .capx is hard to say

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • are you using different layers with parallax less than 100?

    if so, you need to especify which layer you are touching when comparing touch. You do that by adding ("layername") to the touch coordinate. E.g. --> Touch.X("Layer1")

    For your other question:

    Every tick --> Simulate pressing right

    When you stand still --> set player max speed = whatever speed you want

    When you move right + trigger once while true --> set player max speed = Player.8Direction.Speed * 1.2

    When you move left + trigger once while true --> set player max speed = Player.8Direction.Speed * 0.8

    You cant change the multipliers to get higher speed variations

  • Okay, I "finished" what I was creating for you. It's very glitchy right now because it needs a lot of improvements. But the main idea allows you to do what you want.

    You can download it here:

    https://dl.dropboxusercontent.com/u/231 ... cenes.capx

    Let me explain what I did:

    On the layout you can see a some scenes. They are designed scene 1, 2, 3 and so on based on horizontal displacement. The code recognizes the scene based on the position, so that's why I created some sort of grid with the pink bars.

    On start of layout, scene 1 will be picked and a random scene (excluding scene 1) will be picked for next scene. All objects positions and angle are stored in local variables.

    When a scene is picked, all elements inside the area designed to that scene will be picked. Made that using families for immovable and movable objets.

    All objects overlapping the picked coloured background (bg) are pinned to it and than the coloured background is moved to 0,-bg.height (except for the first scene {scene 1} which goes to 0,0).

    After that, objects are unpinned and they start moving down with custom movement.

    When the coloured background collides with a detector at 0,2*bg.height, bg is moved to it's previous position (stored in local variable at start of layout) and all objects that were overlapping it are also resetted to their initial positions, than pinned to bg again. (This part is glitchy, needs improvements)

    Also, when detector is collided, a new scene is picked and created on top of current scene.

    Hope that wasn't much confusing and also hope that suits what you need.