O TEMA DO FÓRUM ESTÁ EM MANUTENÇÃO. FEEDBACKS AQUI: ACESSAR

Sistema de 2 Jogadores com movimento perfeito [Tululoo HTML5][JavaScript]

Iniciado por makergame2000, 03/09/2013 às 14:33

Sistema de 2 Jogadores com movimento perfeito



Este é um sistema de 2 jogadores com movimento diferente, ficando mais muito melhor.
O movimento é suave e simples e real.

Coloque o Script no Evento "Step" da personagem

Jogador 1
//Movimento em frente
if (keyboard_check(vk_up)) {
	this.speed = 8;
} else {
	this.speed = 0
}


//Movimento de Esquerda e Direita
if (keyboard_check(vk_right)) {
	this.direction-=6;
}

if (keyboard_check(vk_left)) {
	this.direction+=6;
}

//Anglo da Imagem é igual á sua direção
this.image_angle = this.direction;



Jogador 2
//Movimento em frente
if (keyboard_check(vk_w)) {
	this.speed = 8;
} else {
	this.speed = 0
}


//Movimento de Esquerda e Direita
if (keyboard_check(vk_a)) {
	this.direction-=6;
}

if (keyboard_check(vk_d)) {
	this.direction+=6;
}

//Anglo da Imagem é igual á sua direção
this.image_angle = this.direction;





Donwload:
http://www.mediafire.com/?939vy9jixa0eqyq