Install Steam
login
|
language
简体中文 (Simplified Chinese)
繁體中文 (Traditional Chinese)
日本語 (Japanese)
한국어 (Korean)
ไทย (Thai)
Български (Bulgarian)
Čeština (Czech)
Dansk (Danish)
Deutsch (German)
Español - España (Spanish - Spain)
Español - Latinoamérica (Spanish - Latin America)
Ελληνικά (Greek)
Français (French)
Italiano (Italian)
Bahasa Indonesia (Indonesian)
Magyar (Hungarian)
Nederlands (Dutch)
Norsk (Norwegian)
Polski (Polish)
Português (Portuguese - Portugal)
Português - Brasil (Portuguese - Brazil)
Română (Romanian)
Русский (Russian)
Suomi (Finnish)
Svenska (Swedish)
Türkçe (Turkish)
Tiếng Việt (Vietnamese)
Українська (Ukrainian)
Report a translation problem
like this:
...
if ( randomnum == 1 ) {
...
} else {
...
}
To fix the rest of the commands; the move_towards_point statement requires x and y coordinates
PeptoBismolDust , you can "extract" those direct from the object you want to move to by adding a point and the variable name just after the object name...
The whole routine would then be something like this;
randomnum = irandom_range(1,30)
if ( randomnum <= 1 ) {
move_towards_point( obj_player.x , obj_player.y , 3.0 );
} else {
move_towards_point( obj_enemy.x , obj_enemy.y , 3.0 );
}
lol I program in unity now