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
{
x -= spd
if ( x < xstart - 100)
{
LR = !LR
}
}else
{
x += spd
if ( x > xstart + 100)
{
LR = !LR
}
}
// this is as simple a code as I can provide.
mp_potential_step(obj_player.x,obj_player.y, 2, false);
And,
motion_set(choose(0, 45, 90, 135, 180, 225, 270, 315), 2);
Will make enemy choose a random direction.
Don't take this the wrong way, as I definitely appreciate the reply, but any chance you could elaborate? Because just copy/paste'ing code I don't really learn! :3
https://youtu.be/DG1L2Fbrhlg
https://youtu.be/pNg9axObUbk
Without specific which type of game it's for (top down, platform etc) I've posted the videos above in an open response of helping.
https://youtu.be/S-F51V01zXM
LR is left right. spd is the speed variable. xstart is where the object starts.
You need to set the spd and LR in the create event.
I can't seem to get that to work. The enemy won't move.
Whenever I try and use my created scripts, the text remains golden yellow and not blue as in the video. Is there something I have to do to "enable" my scripts first?