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.

AppGameKit Classic Chat / virual joystick in 3d

Author
Message
pamercomov
FPSC Reloaded TGC Backer
9
Years of Service
User Offline
Joined: 2nd Jan 2015
Location: palma de mallorca
Posted: 27th May 2020 11:05
Hello everyone
I am starting a 3d game.
I have tried to add a virtual joystick and it does not appear on the screen.

I think I know why but what I don't know is how to do it correctly.

I just add it

AddVirtualJoystick (1,220,100,150)

and when compiling it is not on screen ...

with
SetJoystickScreenPosition (220, 100, 150) in the loop either

At first I thought that it would be placed on a kind of 2d screen with if it were a GUI and that it would simply be rendered and already seen.
the question is .... seeing the commands I have seen sync () call everything .... update () render () swap () .... etc
and I don't know if the problem is from here ... that I don't render correctly.


Or that I must position the joystick with the SetVirtualJoystickPosition (index, x, y) using for "x" and "y" the command some command that passes 3d coordinates to 2d screen?
using AppGameKit V2 tier 1
fubarpk
Retired Moderator
19
Years of Service
User Offline
Joined: 11th Jan 2005
Playing: AGK is my friend
Posted: 27th May 2020 12:27
does the following work

fubarpk on Itch...………...https://fubarpk.itch.io/
fubarpk on googleplay..https://play.google.com/store/apps/developer?id=fubarpk
pamercomov
FPSC Reloaded TGC Backer
9
Years of Service
User Offline
Joined: 2nd Jan 2015
Location: palma de mallorca
Posted: 27th May 2020 12:32
hi fubarpk.

yes this code work for me with 2d graphics
my problem is in 3d world with 3d object in screen

i dont know if is diferent the render system and i make something worng
using AppGameKit V2 tier 1
pamercomov
FPSC Reloaded TGC Backer
9
Years of Service
User Offline
Joined: 2nd Jan 2015
Location: palma de mallorca
Posted: 27th May 2020 12:57
oh my god
its my worng..... and %system coordinates

thx fubarpk.

using AppGameKit V2 tier 1

Login to post a reply

Server time is: 2024-03-29 11:49:18
Your offset time is: 2024-03-29 11:49:18