What-the-freak of the day

This forum is currently in read-only mode.
From the Asset Store
Action packed 2 track pack for use in your projects
  • Well, in this .cap, when you start it, the "Bat" goes in another location that you can't see, the "Ball" doesn't move and the particles don't move. I don't really know what's happening here.

    http://www.mediafire.com/?5bmmchxpx9g

  • WTF indeed. Something seems to always be setting the bat's Y coordinate to 648, even when you delete all the events! Congratulations on finding a really weird bug <img src="{SMILIES_PATH}/icon_razz.gif" alt=":P" title="Razz" />

  • Sorry for the language but this bug it's so weird that you can only say WTF. Hope for a fix soon, or else I've got to do all again from start <img src="{SMILIES_PATH}/icon_sad.gif" alt=":(" title="Sad" />

  • I found the problem, removing "8 Directions Movement" from the "Bat" don't makes the bug appear. But "Ball" and "Particle" still don't move. What's happening!?

  • Messed with your game when you first posted it... I set ball and particle to Bullet movement, and could get the particles to spray downward, ball to bounce off the bat, but my lack of trigonometric ingenuity resulted in only a basic, fairly incorrect deflection when the ball hit the new wall object I made. So, I gave up on math.

    http://www.mediafire.com/?62tx55scdmx

  • I haven't looked at this game yet but if you're looking for bounce code I always use something like this:

    BounceAngle = 2 * (WallAngle - ObjectAngle) + ObjectAngle

    In this case, the wallangle would be the bat and the objectangle would be the ball, bounceangle would be the new angle that the ball would bounce off into.

    Although I am a lazy man and I haven't looked at the game to see if this is appropriate but at least I took the effort to post this here eh? <img src="{SMILIES_PATH}/icon_wink.gif" alt=";)" title="Wink" />

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • For proper bouncing you'd need to be able to calculate the angle of the Tangent of the object at the point where it hit (this is only need for objects that arent squares.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)