Turn Entity Move Mouse?.

Started by Yue, August 28, 2017, 20:47:37

Previous topic - Next topic

Rick Nasher

Mine's simple too.  ;D 
Just was an exercise to get into grips with the x,y,z things and get down to the basics first.
I want the controller to be able to walk on terrain using ObjectRayCast checking (similar as linepick in B3D) and also smoothly onto objects when there are any, using the collision system ObectSphereSlide stuff.

At first thought was just a matter of porting my original B3D code, but it's a slightly different system and different commands so I've started from scratch.

It appears to be very easy getting 3d animated characters into it though once all that has been done.
After that I'll start experimenting with the physics controller stuff.

So quite a few things to do, but great fun! Same as with B3D in the beginning.
_______________________________________
B3D + physics + shaders + X-platform = AGK!
:D ..ALIENBREED *LIVES* (thanks to Qube).. :D
_______________________________________

Rick Nasher

Funny:
First thing I did too, was add the Escape key = end game. Hehehe  :D
_______________________________________
B3D + physics + shaders + X-platform = AGK!
:D ..ALIENBREED *LIVES* (thanks to Qube).. :D
_______________________________________

Yue

For me it's a nightmare. That is, I do not have any training, I do not speak English, how exhausting of all this is proof and error. Equally they are only tests to understand that.

A question. Is there a command similar to MouseSpeedX () ?

Steve Elliott

#18
Maybe, but I am new to AGK too as are others, we will help you.  All learning together.   :D  Besides, trial and error is learning, and learning is fun.

I'm a 2d guy at heart, but will join the 3d camp at some point.

Patience, Yue  ;)
Win11 64Gb 12th Gen Intel i9 12900K 3.2Ghz Nvidia RTX 3070Ti 8Gb
Win11 16Gb 12th Gen Intel i5 12450H 2Ghz Nvidia RTX 2050 8Gb
Win11  Pro 8Gb Celeron Intel UHD Graphics 600
Win10/Linux Mint 16Gb 4th Gen Intel i5 4570 3.2GHz, Nvidia GeForce GTX 1050 2Gb
macOS 32Gb Apple M2Max
pi5 8Gb
Spectrum Next 2Mb

MikeHart

What does mousespeedx return?

MikeHart

#20
If mousespeeedx returns the difference of the mouse x coordinate since its last call, try this:

Global __MouseXDelta as Integer

Function GetRawMouseXDelta()
   Local msx as Integer
   msx = GetRawMouseX()
   __MouseXDelta = msx - __MouseXDelta
Endfunction __MouseXDelta

Qube

QuoteFor me it's a nightmare. That is, I do not have any training, I do not speak English, how exhausting of all this is proof and error.
Lol, you have jumped into the deep end. Not many people pick a new language and choose a 3rd person camera setup as their first project.

Have a look at the sample demos provided with AGK like the one in 3D > 3D-FirstPersonExample - That demonstrates the commands you would use. Granted it's a 1st person camera but it's a simple example and a good starting point.

QuoteA question. Is there a command similar to MouseSpeedX () ?
There is not but this is easy to code based on your requirements. Start with the basics, what is mouse speed?. In it's raw form its the previous location minus current location. Simple enough. After that you just code based on your requirements.

If you are really stuck I'll happily code up a 3rd person camera routine and mouse speed function... Let me know.
Mac Studio M1 Max ( 10 core CPU - 24 core GPU ), 32GB LPDDR5, 512GB SSD,
Beelink SER7 Mini Gaming PC, Ryzen 7 7840HS 8-Core 16-Thread 5.1GHz Processor, 32G DDR5 RAM 1T PCIe 4.0 SSD
MSI MEG 342C 34" QD-OLED Monitor

Until the next time.