Jump to content


Photo

Bouncing


  • Please log in to reply
6 replies to this topic

#1 Petro

Petro

    GMC Member

  • New Member
  • 70 posts

Posted 11 June 2008 - 12:16 AM

I am making a volleyball type game right now, so in it I need the ball to bounce precisely of the player. I can't make it go accurately and precisely. I eventually tried to just use the bounce precisely function that came with Game Maker, but that works very badly. I hope someone can understand what I am tring to do and help me :D.

--Thanks

Edited by Petro, 11 June 2008 - 12:20 AM.

  • 0

#2 TheMagicNumber

TheMagicNumber

    GMC Member

  • GMC Member
  • 5247 posts
  • Version:Unknown

Posted 11 June 2008 - 12:29 AM

What exactly is the view? Side/Platform?

move_bounce_solid(advanced);

Edited by GMREC1111, 11 June 2008 - 12:29 AM.

  • 0

#3 Petro

Petro

    GMC Member

  • New Member
  • 70 posts

Posted 11 June 2008 - 12:32 AM

It is side view, and what do I put in the advanced part of the code? (sorry if that is a stupid question, I am still learning gml)

Edited by Petro, 11 June 2008 - 12:34 AM.

  • 0

#4 TheMagicNumber

TheMagicNumber

    GMC Member

  • GMC Member
  • 5247 posts
  • Version:Unknown

Posted 11 June 2008 - 12:34 AM

Use gravity and move_bounce_solid(true) to do it, it will solve it easily.
  • 0

#5 Petro

Petro

    GMC Member

  • New Member
  • 70 posts

Posted 11 June 2008 - 12:38 AM

That worked for when it was on the ground, but when I tried to jump and hit the ball at the same time it froze for a second then hit it, is there a way to fix that?
  • 0

#6 TheMagicNumber

TheMagicNumber

    GMC Member

  • GMC Member
  • 5247 posts
  • Version:Unknown

Posted 11 June 2008 - 12:41 AM

Hmm, make the player have a mask?
  • 0

#7 Petro

Petro

    GMC Member

  • New Member
  • 70 posts

Posted 11 June 2008 - 01:01 AM

It did the same thing.
  • 0




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users