Jump to content


_Error

Member Since 27 Feb 2012
Offline Last Active May 24 2012 01:04 PM

Posts I've Made

In Topic: obj_enemy not facing player(again)

23 May 2012 - 11:30 PM

Are  you using the registered/pro version of Game Maker?

The Pro Version

In Topic: Obj_player invisible

23 May 2012 - 02:11 PM


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

Do you have pro?
If you do, put this in the draw event
draw_sprite_ext(sprite_index,image_index,x,y,image_xscale,image_yscale,image_angle,image_blend,image_alpha)

Yes I have Pro,

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

BUMP

In Topic: obj_enemy not facing player(again)

08 May 2012 - 02:54 PM

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.

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.

In Topic: obj_enemy not facing player(again)

08 May 2012 - 02:48 PM

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);

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?