Tibeytan's Recent Forum Activity

  • Ok! You're welcome, maybe I'll actually help next time! See ya!

  • Thats the spirit, I appreciate it. Keep up the good work!

  • Hi Dingo! I'm interested in the problem, I'll try to think of something to help.

  • That is a local file URL, we cant see it. ^^

  • I find it great to see a sketch from a notebook being an actual game, with awesome visual effects Great job you did! I'll check it out when its released!

  • Hi AwesomePuppy! You can use System condition "Overlapping Point" :

    Object = (object1);

    X = Object2.ImagePointX(ID_of_image_point);

    Y = Object2.ImagePointY(ID_of_image_point);

    And you're done.

  • Your welcome, but I'm not sure to understand the effects wanted with these pauses. You want the balloon to decrease before it reaches its maximum size? I think you can try something on your own with my capx. I gave you the main mechanic, but testing is always the better to really understand.

  • Hi ! Seems to work pretty nice. Keep up the good work, I'll look into that other game.

  • Glad it helped JonnyBrove! Keep it up!

  • IGDev, the screen does not match exactly what I suggested. I'll give you a commented capx this evening to show you.

    EDIT : As promised, here is the capx : balloon_problem capx

    I voluntarily used actions Set Width and Set Height instead of Set Size, for you to read it more easily. If you have any questions about what I did, ask.

  • Hi IGDev!

    I can't enter your capx cause I'm on the stable version, but I'll try without it.

    First, your balloon needs the Timer Behavior.

    Then, you should try something like this :

    On start button clicked : Start ballon.Timer "growTimer", with a duration of float(growtime.text)
    
    Every tick if ballon.Timer.Duration("growTimer") > 0 : Set ballon width (resp. height) to maximum width (resp. height) * balloon.Timer.TotalTime("growTimer") / balloon.Timer.Duration("growTimer")
    
    On balloon.Timer("growTimer") :  Start balloon.timer "decreaseTimer" with duration of float(decreasetime.text)
    
    Every tick if ballon.Timer.Duration("decreaseTimer") > 0 AND if width & height not inferior than minimum width and height : Set ballon width (resp. height) to maximum width (resp. height) - (maximum width (resp. height) * balloon.Timer.TotalTime("decreaseTimer") / balloon.Timer.Duration("decreaseTimer"))[/code:1eo1g3ua]
    
    When the ballon grows, you can use a simple cross multiplication based on the progression of the timer. When it decreases, since the TotalTime still grows, you must substract the result of the cross multiplication from the maximum size. Do not forget to prevent the ballon to have a width and height of 0, by setting their minimums.
  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Alright! First, you can remove the Platform behavior from your box, because you won't use it for up and down movements. Then, that's how I would advise you to proceed :

    Condition : Prekryti is overlapping Box
                          Condition : Player.X < Box.X  AND Right Arrow is down
                                               Action : Set Box.X to Player.X + distance(Player.X,0,Box.X,0)
                          Condition : Player.X > Box.X  AND Left Arrow is down
                                                Action : Set Box.X to Player.X - distance(Player.X,0,Box.X,0)
                          Condition : Player.Y < Box.X  AND Down Arrow is down
                                                Action : Set Box.Y to Player.Y + distance(0,Player.Y,0,Box.y)
                          Condition : Player.Y > Box.Y  AND Up Arrow is down
                                                Action : Set Box.Y to Player.Y - distance(0,Player.Y,0,Box.y)[/code:3f5cn4jx]
    
    That should work.
Tibeytan's avatar

Tibeytan

Early Adopter

Member since 25 Mar, 2014

Twitter
Tibeytan has 2 followers

Connect with Tibeytan

Trophy Case

  • 10-Year Club
  • x2
    Popular Game One of your games has over 1,000 players
  • RTFM Read the fabulous manual
  • Email Verified

Progress

13/44
How to earn trophies