The Pro VersionAre you using the registered/pro version of Game Maker?
- Game Maker Community
- → Viewing Profile: Posts: _Error
_Error
Member Since 27 Feb 2012Offline Last Active May 24 2012 01:04 PM
Community Stats
- Group New Member
- Active Posts 23
- Profile Views 352
- Member Title GMC Member
- Age Age Unknown
- Birthday Birthday Unknown
-
Gender
Not Telling
-
Version
GM8
Friends
_Error hasn't added any friends yet.
Posts I've Made
In Topic: obj_enemy not facing player(again)
23 May 2012 - 11:30 PM
In Topic: Obj_player invisible
23 May 2012 - 02:11 PM
Yes I have Pro,Do you have pro?
In my game my obj_player is not showing up, this problem happened after I added the ability to reload the gun. I think it is because there is a draw even and it is messing up the sprite. I have put a download to my game if you could help, it is all in the obj_player as far as I am aware.
Download: http://up.ht/LonLur
If you do, put this in the draw eventdraw_sprite_ext(sprite_index,image_index,x,y,image_xscale,image_yscale,image_angle,image_blend,image_alpha)
When I use the draw_sprite_ext the player does not follow it's normal code, such as movement and shooting.
In Topic: obj_enemy not facing player(again)
18 May 2012 - 02:50 PM
In Topic: obj_enemy not facing player(again)
08 May 2012 - 02:54 PM
Could you maybe reupload the file with it fixed? for some reason it is not working, and I don't kno what im doing/ what is going wrong.Yes, in your sprite editor, set it to face angle 0 (aka. 360, aka. direction right (->)).
Else the rotation will have an angular offset, which can be added onto image_angle to give the proper angle.
But I suggest changing the sprite.
No, image_angle is entirely independent of sub-images.
Also, if you're using draw_sprite in the draw event to draw your sprite, you must use draw_sprite_ext.
In Topic: obj_enemy not facing player(again)
08 May 2012 - 02:48 PM
I put that into my step event and it did not work, does my sprite have to be facing right? and also does it need sub images?If you want an object to face your obj_player (player object), simply use this in the Step event:
image_angle = point_direction(x, y, obj_player.x, obj_player.y);
- Game Maker Community
- → Viewing Profile: Posts: _Error
- Privacy Policy
- GMC Rules and Forum Rules ·



Find content