Log in
Search
GameML File Sharing
USERNAME: gamemladmin@gmail.com PASSWORD: gamemlsite Upload Here: https://gameml.forumotion.com/GameML-File-Sharing-h3.htmPlease add only games.Simple(but good) Sliding Movement
2 posters
:: Game Making :: Game Maker Help :: Code Database
Page 1 of 1
Simple(but good) Sliding Movement
*NOTE* originally designed for a Top Down Shooter, but should work in other games similar to that format.
So what this is is a simple(and I mean SIMPLE) movement code that uses the "Friction" function, the result is a cool sliding movement.
First create an object that will be the thing that moves.
Now put this in the Step Event:
Now comes the simple part for all the directional movements just put this code in:
And thats it!
Reviews-
"5/5"-js1210
"WOW ITS SO SIMPLE OMFG!!"- A happy customer
"A simple code that any noob coulda figured out, get a life"-an unpleasent, now desceased, individual
So what this is is a simple(and I mean SIMPLE) movement code that uses the "Friction" function, the result is a cool sliding movement.
First create an object that will be the thing that moves.
Now put this in the Step Event:
- Code:
friction = 0.5
Now comes the simple part for all the directional movements just put this code in:
- Code:
motion_set (direction,speed);
And thats it!
Reviews-
"5/5"-js1210
"WOW ITS SO SIMPLE OMFG!!"- A happy customer
"A simple code that any noob coulda figured out, get a life"-an unpleasent, now desceased, individual
Last edited by -js1210- on Wed Sep 16, 2009 5:24 pm; edited 1 time in total
Re: Simple(but good) Sliding Movement
Congradulations, you have successfully converted d&d to gml so you look great.
Similar topics
» Simple Platform Game Code
» A simple code
» Simple Codes by 3d
» Simple 2D Rain Code-Lite
» How do you make simple blood in a game?
» A simple code
» Simple Codes by 3d
» Simple 2D Rain Code-Lite
» How do you make simple blood in a game?
:: Game Making :: Game Maker Help :: Code Database
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum