Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Room Creation Code:
- {
- physics_create_world( room , 0 , 0 , room_width , room_height , 32 );
- repeat( 20 )
- {
- instance_create( random( room_width ) , random( room_height ) , objBall );
- }
- }
- objBall Create:
- {
- direction = random( 360 );
- speed = 10;
- friction = 0.1;
- }
- objBall Collide with objBall:
- {
- with other
- {
- physics_apply_force( other.x , other.y , other.hspeed , other.vspeed );
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement