fabiof's Recent Forum Activity

  • Hello everybody. Im quite new and i have a problem

    I would like to animate my game over points in this way: if, during the game, you've reached 10 points, in the game over screen i would like to show the counts starting from 0 and going up... 1..2..3..4..5.. and so until 10.

    I guessed the best way to do this is a while loop starting from 0, and ending to 10. So i tried and i have 2 questions.

    1)- Why if i choose the while loop there isn't an ending condition?

    2)-If i try with the repeat (for n. times) or the for loop (until reached n.) the code doesn't escape when the condition is reached. why that?

    Thanks

  • You do not have permission to view this post

  • Thanks! I start inspecting your code to learn something new! Thanks again!

  • Thank you! i uploaded latest version in the 1RJuafc4DVNEI_lAdhJCdxq4JCvpOkWHW g drive code

    btw it seems happening less often then before since i add the pin behaviour

  • Thank you! i uploaded latest version here: https://drive.google.com/file/d/1RJuafc4DVNEI_lAdhJCdxq4JCvpOkWHW/view?usp=sharing

    btw it seems happening less often then before since i add the pin behaviour

  • Subscribe to Construct videos now
  • mmmm, it seems not being a solid creates me even more problem

  • Now if you're already using plateform for the boxes that's perfect, you just need to use "On landed" condition in the events, then "Pin to Object" to pin it to the player object

    Well, the pin solved the falling box on movement. Im still getting problem with movement

    Subscribe to Construct videos now
  • Also I didn't suggested the 8-Direction to fix the box falling problem, only to make the movement management more streamlined

    Sure i understood but even with the 8 direction i got the same problem:

    Subscribe to Construct videos now

    However there is just one tiny problem, without the family feature, there's no way to check if a box collide with another box correctly, because C3 wouldn't know which one to pick and pin to the player, there's a solution however : have an invisible object that is placed on the tray and follow its X coordinates, that would check when a box touch the top of the pile;

    Will try this!

    EDIT : Nevermind I though lf a simplier solution, what do you use to make the boxes fall?

    I use Gravity

  • Ok so, the way you handle the collision is actually not a bad idea, you should just limit the polygon points to 4, basically a flat rectangle;

    Did it!

    Now for the movement behavior, I think 8-Movement is more adapted to your need, you can even limit the movement range to Left/Right in the parameters, be sure to toggle off "Set Angle" tho;

    I tried but still gives me problem when i have something in my tray

    Going back to the collision polygon, one problem that adds to the pile is how to prevent the character to go out of boundaries, for that the clamp expression can be useful, are you familiar with it?

    Not familiar for now. To avoid him to go outside i did set the hero as solid and i placed 2 solid wall in the side (in the picture its the 2 grey rectangle) so the tray in never going outside

  • Hi Tomy and Thanks for you answer.

    So...

    1-

    you should use the pin behavior to pin

    I will try the pin behavior as soon as i solve the point n.3 (understand when a block is in the tray)

    2-

    now for the character moving slowly to the right, have you checked the character collision polygon in the image editor

    I did something 'strange'. I want to grab only blocks that fall in the tray and not in the men so i use the collision polygon only in the tray

    3-

    Also which behavior do you use to move the character

    My character is a solid and a platform

    Thanks!!

  • I think there is something wrong with the videos:

    n.1

    Subscribe to Construct videos now

    n.2

    Subscribe to Construct videos now
  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
fabiof's avatar

fabiof

Member since 9 May, 2022

None one is following fabiof yet!

Trophy Case

  • 2-Year Club
  • RTFM Read the fabulous manual
  • Email Verified

Progress

4/44
How to earn trophies