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
};
- Game Maker Community
- → Viewing Profile: Posts: 123Alvin
123Alvin
Member Since 20 Apr 2012Offline Last Active Mar 01 2013 09:12 PM
About Me
Hello there, my name is Alvin and im interested on game maker 8 proo and im good with grapics, so if you need any help with grapics il be there to help. With programing im 2/10..
Community Stats
- Group GMC Member
- Active Posts 64
- Profile Views 2920
- Member Title GMC Member
- Age 14 years old
- Birthday February 2, 1999
-
Gender
Male
-
Location
Bosnia and Hercegovina
-
Interests
I love game making!
-
Version
GM8
1
none
Latest Visitors
Posts I've Made
In Topic: Basic Left And Right Movement
19 February 2013 - 11:25 PM
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
}
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)
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
- Game Maker Community
- → Viewing Profile: Posts: 123Alvin
- Privacy Policy
- GMC Rules and Forum Rules ·



Find content