mumu64's Recent Forum Activity

  • One "hack" (I think it is) I can think of, is to attach a small sprite (5x5 pixels?) to the center of the ball and a small sprite at the center of the hole.

    If they overlap, the ball is in the center.

  • You do not have permission to view this post

  • Do you mean float(x)?

    "Convert the integer or text x to a float (fractional number)."

    Source: construct.net/make-games/manuals/construct-3/system-reference/system-expressions

  • Try: round(N * 100) / 100

    for 2decimal places, or 1000 for 3 decimal places, etc...

    source: construct.net/forum/construct-2/how-do-i-18/round-format-a-decimal-value-40540

  • Most awesome in-depth reply ever. I am going to study the R0j0hound bible as soon as I have time. :)

  • Hi Rhindon, what I did was set a variable for ground level. Then make it go up agai (by introducing a new variable: bounce force or vector), and every time it comes back down (gravity), the bounce is less, because the bounce force also gets depleted every tick.

    But, I am sure others like R0J0Hound have more elegant ways to do this.

  • Further reading would be “perspective transform” on Wikipedia or elsewhere. I’ll see if I can make a simpler example/better explanation later.

    Thanks! I will start reading there!

    One more question: is there a (best practise?) reason why you have chosen to use "sprite: add <negative gravity> to <variable>"?

    I (n00b me) would have typed: "sprite: subtract <gravity> from <variable>"

    ps: I have thanked you in my twitter post, accompanied with a small movie of a falling apple. But I do not know your twitter name, so I used your forum handle.

  • It uses (100-1)/(100-z) for the scale now. Change the 100s to adjust the amount of scaling. It may be ok to just use z directly like before. It all depends what is acceptable.

    Thanks, it also works for me.

    I do not understand the 100-part, though. If it is not too troublesome, could you explain it or point to someplace where I can read about it?

    (100-1)/(100-z), if z=1 --> (100-1)/(100-z)=99/99 = 1 = the image is not scaled up or down, if I understand correctly.

    And if z changes, the outcome changes, which affects the scaling.

    If I am right about how this works, then the question is maybe, how did you get to making this genius way of handling it?

  • Kyatric : is this something for the FAQ?

  • The parabolic equation is y=ax^2+bx+c, where y=object's scale.

    If I want to use this equation for y=scale, then what is a "a", "x" and "b"?

    a = beginpoint, b = endpoint, x = x-scale?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Scirra is doing great (check out blog posts for more info).

    I really like using C3, use it almost daily. ALso, I think it is affordable.

    The community is friendly and helpful in my opinion.

  • I also thought about making a Coffee-order-website/app for the office :D

    Never started on it, though.

mumu64's avatar

mumu64

Member since 8 Feb, 2009

Twitter
mumu64 has 2 followers

Connect with mumu64

Trophy Case

  • 15-Year Club
  • Forum Contributor Made 100 posts in the forums
  • Forum Patron Made 500 posts in the forums
  • Popular Game One of your games has over 1,000 players
  • RTFM Read the fabulous manual
  • Email Verified

Progress

20/44
How to earn trophies