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.

Newcomers AppGameKit Corner / 3D - FPS/TPS : Bullet at center of the screen

Years of Service
User Offline
Joined: 17th Feb 2014
Location: Arkeos
Posted: 5th Mar 2018 15:10

Do you know how I can send the bullets of my gun at the center of the screen (like in a tps/ fps ) ?

For the moment, I have that (but it's bugged ^^) :

But I don't know how to shoot always the "target", which can change if we move the view with the mouse.

Do you know how I can do that ?

Thanks a lot .
AGK2 tier1 -
Years of Service
User Offline
Joined: 22nd Feb 2013
Location: the land of oz
Posted: 5th Mar 2018 22:37
i would say you need to get a vector from the direction the camera is looking, starting at the center of the screen (if that's where you want them to start from).

User Banned
Posted: 6th Mar 2018 21:15 Edited at: 6th Mar 2018 21:21

Edit.. You need to add the function in the main loop somewhere - oops

Login to post a reply

Server time is: 2023-09-24 01:10:11
Your offset time is: 2023-09-24 01:10:11