PDA

View Full Version : A simple swim effect for Game Maker


Korussive Acidsan
July 27th, 2006, 01:31 AM
Hallo. This is my method for swimming I used for the Titagasman game. Remember that that is TENTATIVE TITLED. Here we go:

Step one:
In the Create event for you character (must be a platform-game character, or else this will not work) create a Set Variable event to:
Variable: swim_check
Value: False

Now, in the step event, do this:
http://img291.imageshack.us/img291/4554/newbitmapimage11tv8.png (http://imageshack.us)

You can set the gravity to your normal game jumping gravity (normally 0.5), but the direction MUST be 270.

Step Two:

Now, create an object that is at the top of the water, so once you jump out of it, you are back to normal non-water mode. So, in collision event with your marker,
set variable "swim_check" to false

Remember that in a collison event with your water objject,
set variable "swim_check" to true


By now you should already have your Platform character made, so I won't tell you how to move to the right or left, or how to jump and when your collide with the ground you are normal again.


Good luck, hope this helps. Next one will be better since I won't be so sleepy. -_-