Jump to content


Photo

New Physics (box2D)


  • Please log in to reply
2 replies to this topic

#1 Cakefish

Cakefish

    I Shot The Sheriff

  • GMC Member
  • 1329 posts
  • Version:GM:Studio

Posted 13 April 2012 - 12:20 PM

Hi folks,

So I've been experimenting with the new physics engine that Studio has. Had a look at the documentation and followed it through. But I have a few questions regarding how it all works.

How do you get an object moving. I understand it is to do with forces so how would you, say if you wanted to create a platform game, apply a force instructing the player controlled object to move right/left and jump etc. when a key is pressed.

Also say if I want to create bouncy balls. So far I have made it so that the object is affected by gravity and falls and comes to rest on the 'ground'. But how do I make that ball bounce along instead?

Lastly if anyone knows of an example showcasing the functions of the physics engine floating around anywhere it would be much appreciated.

Cheers! Posted Image
  • 0

#2 alexfislegend

alexfislegend

    GMC Member

  • GMC:Member
  • 196 posts
  • Version:GM:Studio

Posted 13 April 2012 - 12:51 PM

Reading http://www.yoyogames.com/news/90 will give you http://www.yoyogames...s/AngryCats.gmz - a Angry Birds type game made in GameMaker: Studio.

And searching these forums will give you http://gmc.yoyogames...dpost&p=3925455 and http://gmc.yoyogames...post&p=3919255.

#3 Cakefish

Cakefish

    I Shot The Sheriff

  • GMC Member
  • 1329 posts
  • Version:GM:Studio

Posted 13 April 2012 - 01:04 PM

You sir, along with the people who created those examples, are gods amongst men. Thanks!

If there are any other examples out there please let me know. They really help me learn and progress!

Edited by Cakefish, 13 April 2012 - 02:02 PM.

  • 0




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users