Jump to content


123Alvin

Member Since 20 Apr 2012
Offline Last Active Mar 01 2013 09:12 PM

Posts I've Made

In Topic: Basic Left And Right Movement

19 February 2013 - 11:25 PM

And sory for dubble post i would change that movement code i would put it like this
if keyboard_check(vk_right) & place_free(x+1,y)
{
x+=//youre speed here
};
if keyboard_check(vk_left) & place_free(x-1,y)
{
x-=//youre speed here
};

In Topic: Basic Left And Right Movement

19 February 2013 - 11:23 PM

I would do it like this:
if keyboard_check(vk_space) & place_meeting(x,y+1,obj_solid)
{
vspeed-=14
}

In Topic: Enemy Turns Toward The Player

19 February 2013 - 11:19 PM

Put this code when enemmy detects the player:

image_angle=point_direction(x,y,obj_player.x,obj_player.y)

In Topic: Move in other objects direction

14 February 2013 - 03:27 PM

THX dude I didnt had that simple code in my mind :D

In Topic: Need help finding a good ai example :D

31 December 2012 - 03:27 PM

THX you guys, really helped :D