Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

AppGameKit Classic Chat / need some help with some stuff

Author
Message
3d point in space
15
Years of Service
User Offline
Joined: 30th Jun 2009
Location: Idaho
Posted: 22nd Nov 2011 23:11 Edited at: 22nd Nov 2011 23:56
When I move around the room the gun does not point at the player.
I am using ATanFull to get angle from monster to player. (solved)

Go through yourself at a wall.
3d point in space
15
Years of Service
User Offline
Joined: 30th Jun 2009
Location: Idaho
Posted: 22nd Nov 2011 23:20 Edited at: 22nd Nov 2011 23:22
see picture. Another thing is that the monster on the top the gun is not centered. How do you center a gun on a rotating sprite.



Go through yourself at a wall.

Attachments

Login to view attachments
bjadams
AGK Backer
16
Years of Service
User Offline
Joined: 29th Mar 2008
Location:
Posted: 22nd Nov 2011 23:56
To centre sprites, use the SetSpriteOffset command to set the appropriate pivot point, and then SetSpritePositionByOffset instead of SetSpritePosition.
3d point in space
15
Years of Service
User Offline
Joined: 30th Jun 2009
Location: Idaho
Posted: 23rd Nov 2011 00:39 Edited at: 23rd Nov 2011 00:43
I guess that worked know it looks better.




Go through yourself at a wall.

Attachments

Login to view attachments

Login to post a reply

Server time is: 2024-11-22 16:00:32
Your offset time is: 2024-11-22 16:00:32