B
bluGecko
Guest
Hi,
My current project consists of a game set in space. Originally I was just using GameMaker's default system for movement of the player and enemies. I would now like to switch to using physics (Box2d) as this will provide a more 'floaty' feeling to the movement and much more desirable collisions, which is the effect I am looking for. So far I have managed to convert most of my code to now work with physics.
All I'm left with is this code:
This code is placed in an Alarm[0] event and is called in the create event.
My question is, how can I get this code to work within the physics engine of GameMaker.
Thank you
My current project consists of a game set in space. Originally I was just using GameMaker's default system for movement of the player and enemies. I would now like to switch to using physics (Box2d) as this will provide a more 'floaty' feeling to the movement and much more desirable collisions, which is the effect I am looking for. So far I have managed to convert most of my code to now work with physics.
All I'm left with is this code:
Code:
speed = 1 + random(2);
direction = random(4) * 90;
image_angle = direction
alarm_set(0, 100 + random(200));
My question is, how can I get this code to work within the physics engine of GameMaker.
Thank you