[Order] Engine (I'm Brazilian)

Posted by Willy Maker on June 22, 2009, 8:49 p.m.

Hi

My name is Michael, I live in Brazil and do not speak English …

I'm using Google to translate my words, so there may not be total understanding.

Well, I would ask an engine, in which only a wall, my object can slide both horizontally as vertically.

Note: The subject walks freely without gravity …

In my engine, I could not press the button "up" and "right" at the same time, my object lock. If allowed a vertical object, not allowing a horizontal object! I'm angry!

I have not found anywhere, so rresolvi ask! Now thanks.

Please try to answer without abbreviations, I am Brazilian and I use the google translator. = D

Comments

Bryan 16 years, 10 months ago

I'm angry too youknow!

Josea 16 years, 10 months ago

From now on we'll call you brazilian guy.

Cesque 16 years, 10 months ago

Whatever your problem is, I suggest using code and "if keyboard_check(vk_right)" / "if keyboard_check(vk_up)" to go around it.

Of course, there may not be a total understanding of what you mean.

Juju 16 years, 10 months ago

Quote: Suggested code
var xx, yy;

xx = 0;

yy = 0;

if (keyboard_check(vk_up)) yy -= 1;

if (keyboard_check(vk_down)) yy += 1;

if (keyboard_check(vk_left)) xx -= 1;

if (keyboard_check(vk_right)) x += 1;

if (place_free(x+xx,y)) x += xx;

if (place_free(x,y+yy)) y += yy;
Put that in the step event.

Welcome to 64D.

melee-master 16 years, 10 months ago

Quote:
if (keyboard_check(vk_right)) x += 1;

Mistake Juju. That x should be xx.

SixWinged 16 years, 10 months ago

I don't want to see you when you're angry.