September 17, 2021, 08:04:15

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

Offline Yue

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


 :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

« Last Edit: August 30, 2017, 01:46:54 by Yue »

Offline Qube

  • Administrator
  • Hero Member
  • *****
  • Posts: 2764
  • I mostly code at night... Mostly.
    • SyntaxBomb - Indie Coders
Re: Learning AGK Powered by Qube :D
« Reply #1 on: August 30, 2017, 03:54:21 »
Yay, you got it working, nice one  8)
Mac mini ( 2018 / 2020 ), 3 GHz 6-Core Intel Core i5, 16 GB 2667 MHz DDR4, 1TB NVMe, eGPU Radeon Pro 580 8 GB, LG Ultragear 27GL83A-B 27 Inch
Mac mini (2020 ), M1 SoC, 8 GB LPDDR4, 512GB NVMe 
Commodore VIC-20, 1.1Mhz MOS 6502 CPU, 5KB RAM, VIC ( 6560 ) GPU

Until the next time.

Offline Steve Elliott

  • Hero Member
  • *****
  • Posts: 3224
  • elgol
Re: Learning AGK Powered by Qube :D
« Reply #2 on: August 31, 2017, 09:58:50 »
Cool, some progress  8)
Windows 10 64-bit, 16Gb RAM, Intel i5 3.2 GHz, Nvidia GeForce GTX 1050 (2Gb)
MacOS Big Sur 64-bit, 8Gb RAM, Intel i5 2.3 Ghz, Intel Iris Plus Graphics 640 1536 MB
Linux Mint 19.3 64-bit, 16Gb RAM, Intel i5 3.2 GHz, Nvidia GeForce GTX 1050 (2Gb)
Raspberry pi 3, pi 4, pi 400, BBC B, C64, ZX Spectrum

Offline Yue

  • Hero Member
  • *****
  • Posts: 579
    • YiHosting Your Hosting Free
Re: Learning AGK Powered by Qube :D
« Reply #3 on: September 01, 2017, 00:39:37 »
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