yapiiiii's Recent Forum Activity

  • you're welcome

    (there are 5 "i" at "yapiiiii" )

  • you can do this easily with the "custom movement" behavior.

    you can define the angle of motion for each object. (a little trigonometry will be helpful to define the angle you want)

    then move all the objects at the same time by setting their speed in one event.

    Maybe you need more explanation about calculating the angle :

    your object is in (Xa,Ya) on the screen

    the destination point is in (Xb, Yb) on the screen

    the motion angle should be :

    arctan((Ya-Yb)/(Xb-Xa))

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • yes, or more exactly 1/1.2

  • you can reproduce some physics effects quite easily with some operations... I can help you if you need help to do that.

  • nice! it reminds me "chaos faction" and "gun mayem".

    Great job for the code, but you should consider working on the graphics (platforms and background mostly), but I think you already planned it.

  • you're welcome!

    There is often many ways to do something, I just suggested one way, certainly not the best. In that case, your way is effectively better, I think.

    don't forget to edit your first post and add [solved]

  • [edit] is it me or you just have removed your message?

    yes, it should work

    I think the detection polygons aren't well defined, or the collisions are maybe deactivated.

    you can try the condition: "Player is overlapping X"

  • I made a game with this kind of health bar, it is very simple (don't be scared by the length, it is very detailed) :

    • create a "heart" sprite
    • create a specific layer to put the "health bar" (can be skipped)
    • create an event at the start of layout (or at the start of your game) :

    repeat 3 times :

    create heart on layer "health bar" in (50+50*loopindex() , 50)

    this create the hearts in (50,50) ; (100,50) ; (150,50)

    the values "50" can be replaced if you want to place your hearts at a different position.

    • add a condition to the event where the player lose a life, you must already have created :

    heart : pick nearest to (720, 0)

    this pick the heart at left (even if there is more or less hearts)

    You can also change the value "720"

    • add a sub-condition to this event :

    compare 2 values : heart.count > 0

    • and the action corresponding :

    heart : destroy

    • you can add a "Else" condition : that means the player lose, there is no heart left.

    in few words:

    repeat 3 times : create heart on layer "health bar" in (50+50*loopindex() , 50)

    heart : pick nearest to (720, 0)

    • if heart.count > 0 : destroy heart
    • else : player lose
  • The solution of MadSpy is great.

    Moun glow : thanks for the project, you can also save your project as a single file in construct (.capx) which is simpler to download.

  • I don't understand what you don't understand

    I will try to explain the condition you was talking about:

    Value at (Array.CurX,0) = figures.whatIam :

    • Array.CurX is the position in the loop, it takes the values 0, then 1, then 2, then 3.
    • 0 (after the coma) is the Y : the values we search are situated in (X,0) in the array, with X from 0 to 3.

    in the condition, we search at these positions

  • and what is the grey square in the middle?

    I think you should add a variable to differentiate all the instances of pelvis, then you could use this variable in the function to place them at different positions.

    An other way to do what you want is the "pin" behavior, which is designed exactly for these situations, I don't know why your pins was lagging.

  • 1. The next time, post the capx instead of a picture, it helps to understand better

    2. don't bump before 24h, personally, I answer at first to topics without any answer

    3. I don't understand the "box is rotate" event, maybe there is an error here.

    4. It seems you have a lot of things called "rotate" : a variable, a behavior, and the action of rotating the box. A capx instead of a picture would really help understand this...

yapiiiii's avatar

yapiiiii

Member since 21 Mar, 2014

None one is following yapiiiii yet!

Trophy Case

  • 10-Year Club
  • Email Verified

Progress

11/44
How to earn trophies