on bullet behavior bounced?

0 favourites
  • 5 posts
From the Asset Store
Bouncing ball
$9.99 USD
Template for a bouncing ball game, fully documented in comments and video
  • Hi everyone,

    Is there a simple event function to detect when a sprite with bullet behavior just bounced off a solid? I don't see such a thing, but it would be very useful...similar to the animation trigger events for platformer behavior, like on landed, on jumped etc.

    thanks,

    Mike

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • An object with bullet behaviour only bounces when colliding with something, so would on collision work?

  • But how would I check on collision with ANY solid? Am I forced to put all solid sprites into a group, and then create a second group for solid tile-objects etc etc?

    Since the bullet behavior can be set to bounce off of solids, wouldn't an "on bounced" event make things drastically simpler? This is exactly like what the platform behavior currently offers with "on jump", "on-land" etc.

  • Hello! Yup, "bullet -> on bounced" condition would be pretty nice. <img src="smileys/smiley1.gif" border="0" align="middle">

    I've tried to emulate it, here is the capx. Not a perfect solution, but hope that might help <img src="smileys/smiley9.gif" border="0" align="middle">

    /Edit: Might replace obj.Angle with obj.Bullet.AngleOfMotion for a closer emulation

  • Hi JJList,

    Thanks for the suggestion and example. I had though about doing this myself, but was hoping it wouldn't be necessary and that I was simply not finding an existing feature.

    This does work for my needs, just ads another variable and more events than would otherwise be necessary...I'm trying to keep as optimized as possibe.

    cheers,

    Mike

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