yapiiiii's Forum Posts

  • what games have you already developed?

    sorry if you are more experimented than I thought

  • It seems you start with an ambitious project! you'll see that simplest games are often better, because bigger games are almost every time too hard or too long to develop.

    Trying something complicated and new is always a good experience, but don't expect too much from your game.

  • construct will adapt the resolution automatically on every devices, don't worry about that : the only thing that matter is what you see on preview : )

  • if the ball if significantly smaller than the square, compare their positions when they collide : you'll see of which side the ball is nearest.

    you can also do this if the ball is bigger, but you'll have to take in account the speed of the ball : you determine the position of the "front" of the ball then you compare it to the position of the square.

  • can you upload a capx?

    what is the exact problem?

  • i never used the stepping mode, so I can't help you much.

    I have a solution but certainly not the simplest :

    • disable stepping mode
    • move your object horizontally
    • add an event : if object.Y > {value you want} then set horizontal speed to 0 & vertical speed to {value you want}
  • 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))

  • 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.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • 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.