baokinh's Forum Posts

  • 6 posts
  • Hi all!

    Here is what I would like to achieve :

    I have a square on the left of the screen and I would like to move it to the right more and more by clicking fast on my mouse button and if I stop clicking it comes back to its initial position. But the more it moves to the right, the faster I need to click until it becomes alsmot impossible to move it further.

    Just like the string of a bow that becomes harder and harder to pull.

    If I slow down the clicking the square should lose ground and if I completely stop clicking it comes back completely to the left.

    I imagine that maybe I should count the number of time I click on the mouse per second and let's say if I click 5 times per second then my square is at 50% of the width of the screen but if I click 6 times per s then it reach 60% of the width. Or maybe it's possible to do that with physics to have a more realistic feeling?

    Thanks for any help!

  • Wow thanks randomly for the project and the comments that's super nice from you!

    I'm going to get my head into your capx and try to understand because I can't get mine to work...

    The "notimportant" group is really the final art touch! hehe

    Thanks a Lot for your time!! I get back in

  • Thanks both of you randomly ! I really apreciate your help.

    I'm going to try by myself today to see if I manage to get something workable, can't wait to test what you both explain. This is the initial direction I needed.

    I will get back to you in case of emergency!

    Have a nice day Gentlemen.

  • Hi!

    I have a little character facing right and runing on the left side of the screen and the ground is sliding under his running feet at constant speed when I don't touch anything.

    This is what I need : my character has to accelerate more and more, depending of the speed I tap a button. If I tap 10 times per second he should reach the middle of the screen and if I can tap even faster he could reach the right side of the screen. The ground would slide faster too.

    If I tap slower he should loses ground or if I stop tapping he will go back to his initial position on the left.

    What is the best way to do that?

    Thanks for any help!

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Wow thank you so much!! It's so kind of you!

    I'm going to check it and learn!

    Have a nice day!

  • Hi!

    It might be simple but I'm a beginner and I need your help for this:

    I want to create an emiter outside the layout spawning sliding colored segments one after the other, they should touch each other. Each of the segment will be created from 3 colored tilable bitmap (red, yellow and green, they will be tilable textures) and the emiter should never spawn 2 of the same color consecutively.

    The emiter will spawn them during let's say 1 minute at a given speed and then stop emiting.

    There are also 2 buttons to insert 2 other type of segments (brown & pink). Those 2 have a definite width.

    When a button is pressed the next segment to appear will be one of those special segment. Then the other random segment should follow again.

    I'm posting a pic to explain more visually:

    https://i.imgsafe.org/dc0d683.png

    What is the best way to achieve such a thing?

    Thanks!

  • 6 posts