luke7eco's Forum Posts

  • Currently, only have thoughts about adding very wide invisible rectangles (with solid behavior) as a child to the box walls.

    Perhaps there is a better way to implement this?

  • Hi

    I have 2 objects:

    - box

    - balls (many instances inside of the box). Important: balls have smaller collision polygons than their size (approximately 30% in the center)

    Box has Physics (Immovable) and Solid behavior.

    Ball has Physics and 8Direction behavior (for interaction with solids).

    When I fastly rotate a box (or when the box hits the edge of layout) balls pass through it despite collision polygons. How to prevent it?

    Thanks.

  • Hi

    I have a custom slider that I created using this tutorial (with slight changes):

    Subscribe to Construct videos now

    I have a Global number InitialSliderPercent = 100 (so by default it is fully filled)

    I also have another object whose angle I want to change when the slider moves.

    On start of layout that object probably is at 0 degrees and when I move the slider that object must rotate (change angle) to the left to a maximum of -120 degrees (when the slider circle is on 0).

    How to rotate/change angle of the object from 0 to -120 (degree by degree) by changing the position of SliderCircle.X from SliderBack.BBoxRight to SliderBack.BBoxLeft?

    I will be grateful for your help.

    Tagged:

  • works good

    Thank you

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Painted a bit

  • Hi everybody

    Hope someone will help me with this.

    Imagine that we have 2 objects (sprites):

    - box

    - ball

    1 instance of "box" is placed on layer "Boxes"

    1 instance of "ball" is placed on layer "Balls"

    a box has behaviors: Physics (Immovable), DragDrop

    a ball has Physics behavior (so it has a gravity like a real-world ball)

    "On the start of layout" I "Destroy" a ball and create a Loop to Spawn 100 balls (instances) inside of the box.

    It works well when I run a preview (balls appear in the box)...

    Problem:

    ... but when I start to drag a box or rotate it balls are flipping out of the box - despite collision polygons.

    Looks like collision polygons of balls do not interact with collision polygons of box walls when I move the box.

    I want the balls:

    1) to stay inside the box (inside collision polygon)

    2) move inside the box if I change the box angle a bit (like in real-world)

    Need some help with it.

    Thanks)