Re: Need help for handling turning with mouse, something like swamp

2019-06-16 Thread AudioGames . net Forum — Developers room : roelvdwal via Audiogames-reflector
Re: Need help for handling turning with mouse, something like swamp I don't get entirely what you're asking. But if direction is in degrees, if I understand this correctly, your code will break badly. Let's assume that the player did not move the mouse. That'll return (0, 0

Re: Need help for handling turning with mouse, something like swamp

2019-06-15 Thread AudioGames . net Forum — Developers room : kianoosh via Audiogames-reflector
Re: Need help for handling turning with mouse, something like swamp What do you mean by movement and position? BGT also provided x/y/z variables for the mouse.Edit: The module i'm using has a function that returns a list containing an x and a y variable, telling how much the mouse moved

Re: Need help for handling turning with mouse, something like swamp

2019-06-15 Thread AudioGames . net Forum — Developers room : kianoosh via Audiogames-reflector
Re: Need help for handling turning with mouse, something like swamp What do you mean by movement and position? BGT also provided x/y/z variables for the mouse. URL: https://forum.audiogames.net/post/441903/#p441903 -- Audiogames-reflector mailing list Audiogames-reflector@sabahattin

Re: Need help for handling turning with mouse, something like swamp

2019-06-15 Thread AudioGames . net Forum — Developers room : CAE_Jones via Audiogames-reflector
Re: Need help for handling turning with mouse, something like swamp It depends if you're using a lib / API / toolkit where you are given the mouse movement, or the mouse position. BGT is movements, java.awt.MouseEvent was position, iirc.If it's position, you need to get the change from

Re: Need help for handling turning with mouse, something like swamp

2019-06-15 Thread AudioGames . net Forum — Developers room : gonzalez2016s . alovver via Audiogames-reflector
Re: Need help for handling turning with mouse, something like swamp Yeah, probably calculating the average mouse speed and applying that to turning is a working way to go in theory. Or, you could set some customizable speed, letting user to choose how fast they'd like to turn. But just

Re: Need help for handling turning with mouse, something like swamp

2019-06-15 Thread AudioGames . net Forum — Developers room : visualstudio via Audiogames-reflector
Re: Need help for handling turning with mouse, something like swamp you should check the mouse. depending on the coordinates of the mouse in each frame, you can calculate it. URL: https://forum.audiogames.net/post/441820/#p441820 -- Audiogames-reflector mailing list Audiogames