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

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

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 - http://www.dracaena-studio.com
blink0k
Moderator
11
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).

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




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

Login to post a reply

Server time is: 2024-11-24 10:03:28
Your offset time is: 2024-11-24 10:03:28