April 08, 2020, 07:52:05 AM

Author Topic: Learning AGK Powered by Qube :D  (Read 1241 times)

Offline Yue

  • Hero Member
  • *****
  • Posts: 579
    • YiHosting Your Hosting Free
Learning AGK Powered by Qube :D
« on: August 30, 2017, 01:45:13 AM »


 :D

Rotate Cube   With Pointer Mouse
Code: [Select]
// Rotar Pivote Jugador.
Function RotarPivote( jugador As TJugador )

raton.x = GetPointerX()
raton.y = GetPointerY()


dx = raton.x - pantalla.ancho
dy = raton.y - pantalla.alto

rotacion.x  = rotacion.x + dx / 10.0
rotacion.y  = rotacion.y + dy / 10.0

SetObjectRotation( jugador.pivote, rotacion.y, rotacion.x, 0 )


SetRawMousePosition( pantalla.ancho, pantalla.alto )

EndFunction


Offline Qube

  • Administrator
  • Hero Member
  • *****
  • Posts: 2346
Re: Learning AGK Powered by Qube :D
« Reply #1 on: August 30, 2017, 03:54:21 AM »
Yay, you got it working, nice one  8)
Until the next time...

Offline Steve Elliott

  • Hero Member
  • *****
  • Posts: 2305
  • elgol developer
Re: Learning AGK Powered by Qube :D
« Reply #2 on: August 31, 2017, 09:58:50 AM »
Cool, some progress  8)
Windows 10, 64-bit, 16Gb RAM, CPU Intel i5, 3.2 GHz, Nvidia GeForce GTX 1050 (2Gb).
MacOS Catalina, 64-bit, 8Gb RAM, CPU Intel i5, 2.3 Ghz, Intel Iris Plus Graphics 640 1536 MB.
Linux Mint 19.3, 64-bit, 16Gb RAM, CPU Intel i5, 3.2 GHz, Nvidia GeForce GTX 1050 (2Gb).

Offline Yue

  • Hero Member
  • *****
  • Posts: 579
    • YiHosting Your Hosting Free
Re: Learning AGK Powered by Qube :D
« Reply #3 on: September 01, 2017, 12:39:37 AM »
Learn and learn, nothing more to say.

I have managed to create a camera in the third person that follows the jguador, many things still do not understand, I have problems with the shadows, but I imagine that my models seem to be very small something similar.

Thanks to Rick for your attention :)




 

SimplePortal 2.3.6 © 2008-2014, SimplePortal