Steam 설치
로그인
|
언어
简体中文(중국어 간체)
繁體中文(중국어 번체)
日本語(일본어)
ไทย(태국어)
Български(불가리아어)
Čeština(체코어)
Dansk(덴마크어)
Deutsch(독일어)
English(영어)
Español - España(스페인어 - 스페인)
Español - Latinoamérica(스페인어 - 중남미)
Ελληνικά(그리스어)
Français(프랑스어)
Italiano(이탈리아어)
Bahasa Indonesia(인도네시아어)
Magyar(헝가리어)
Nederlands(네덜란드어)
Norsk(노르웨이어)
Polski(폴란드어)
Português(포르투갈어 - 포르투갈)
Português - Brasil(포르투갈어 - 브라질)
Română(루마니아어)
Русский(러시아어)
Suomi(핀란드어)
Svenska(스웨덴어)
Türkçe(튀르키예어)
Tiếng Việt(베트남어)
Українська(우크라이나어)
번역 관련 문제 보고
Something like:
xDiff = abs(obj.x - player.x);
yDiff = abs(obj.y - player.y);
if xDiff > yDiff
{
if obj.x > player.x
{
obj.x -= 32; //for a grid with 32x32 squares
}
else
{
obj.x += 32;
}
if yDiff > xDiff
.....same stuff but for y movement.....
if xDiff == yDiff
{
var i = irandom(1);
if i > 0
......conditionals to figure out whether to move left or right.....
else if i < 1
......conditionals to figure out whether to move up or down.....
object create event
then its just a matter of working with the grid co-ordinates. in the object step event this is where the code differs for the player object as it is moved by the user rather than the game. But for your other objects:
hope this helps,
Steve.
Hope this helps.
Steve