Gamemaker: Basic collisions without solid objects.

Publicado el: 11 abril 2014
en el canal de: Sea Blu
20,763
96

Today I make my first game maker tutorial in three years, and show you how to create/use basic platformer collisions without the use of the solid variable.


CODE:

~ OBJ_CHAR ~

Step Event
if !place_meeting(x,y+1,obj_block)
{gravity=1.3 gravity_direction=270}

else
{gravity=0 gravity_direction=270}

Collision Event
if other.blocksolid = 1
{x=xprevious
y=yprevious
move_contact_all(direction,12) vspeed=0}

Left Event
if !place_meeting(x-6,y,obj_block)
{x -= 6}

Up Event
if place_meeting(x,y+5,obj_block)
{vspeed = -11}

Right Event
if !place_meeting(x+6,y,obj_block)
{x += 6}


~ OBJ_BLOCK ~

Create Event
blocksolid = 1

QSF Facebook page:   / quickshotfilms  
QSF Website: http://qsdevelopment.toppysites.com/

Made using serif movieplus x6.

Hope you enjoyed :)


En esta página del sitio puede ver el video en línea Gamemaker: Basic collisions without solid objects. de Duración hora minuto segunda en buena calidad , que subió el usuario Sea Blu 11 abril 2014, comparta el enlace con amigos y conocidos, en youtube este video ya ha sido visto 20,763 veces y le gustó 96 a los espectadores. Disfruta viendo!