Welcome Guest ( Log In | Register )

[ Big| Medium| Small] -

Post new topic Reply to topic  [ 1 post ] 
  Sat Oct 23, 2010 5:48 am
It's me Rukiri!
User avatar

For RPGs collisions are rather easy as you're only checking either 4 or 8 ways, in a advanced platformer you probably have a physics script running in the background(some betas show curvy lines, diagonals lines etc for showing off their physics scripts)

But today let's worry about the basics, if you can think how something works you can make it work but it's not always the best way to do it.


For an any game this is essential as this is how we check if we;re near a solid, if we're touching solids we just stop movement by "speed=0;" course you may use hspeed/vspeed as well.

Here is just a simple way of moving a character down with collision checking.
Expand to see the code.

It's basically the same way for all directions including diagonal directions, just make sure your using code for the right directions.

Direction Easy Guide

Down"South": +

Left"East": -

Right"West": +

Up"North": -

Now for example a diagonal direction. South-East.
Expand to see the code.

Okay, I realize this is probably not the best tutorial ever written as it's far from it. But it get's right to the point without all the jibber jabber.


Top Top
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

Who is online

Users browsing this forum: No users and 2 guests

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

We are an independent, not-for-profit game making community.
Board Index
About Us
Downloadable Games
Free Browser Games
Games in Development
RPG Maker Support
Game Maker Support
Construct 2 Support
HBGames the eZine
Advanced RPG Maker
Site Announcements
Powered by phpBB © phpBB Group