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 / Virtual Joystick not showing

Author
Message
The night coda
13
Years of Service
User Offline
Joined: 6th Jul 2010
Location: Hull
Posted: 7th Feb 2014 21:17
Hi I am having an issue with Virtual Joystick when i run the code tire 1 on windows the stick gets created and drawn when i then broadcast to my Android device running the up to date player on Android 4.0.3 it is suddenly not been drawn not good.
So i tried one of the examples PlayerMovement and the same happened so i added a

directly under the display instructions prints and when i run it on windows it prints
Quote: "
Use the virtual joystick to
control the player
JOYSTICK EXISTS: 1
"

but when run on my Android device i get
Quote: "
Use the virtual joystick to
control the player
JOYSTICK EXISTS:
"


Dose anyone know why this happens and if so is there a fix

Thanks for reading

coding at night always and forever
Markus
Valued Member
20
Years of Service
User Offline
Joined: 10th Apr 2004
Location: Germany
Posted: 7th Feb 2014 22:22 Edited at: 7th Feb 2014 22:32
hmm,
what happens with this example from tone dialer?

did you use also AppGameKit 108 .19?



AGK 108 (B)19 : Windows 8.1 Pro 64 Bit : AMD Radeon HD 6670
The night coda
13
Years of Service
User Offline
Joined: 6th Jul 2010
Location: Hull
Posted: 7th Feb 2014 22:51 Edited at: 7th Feb 2014 22:52
The same thing really
on windows i get
[img]liamwilson.me.uk/wpimages/windows%20jobstick.png[/img]
[href]liamwilson.me.uk/wpimages/windows%20jobstick.png[/href]
and on android i get
[img]liamwilson.me.uk/wpimages/android%20jogstick.jpg[/img]
[href]liamwilson.me.uk/wpimages/windows%20jobstick.png[/href]
Its very strange could it be my device?

coding at night always and forever
easter bunny
11
Years of Service
User Offline
Joined: 20th Nov 2012
Playing: Dota 2
Posted: 8th Feb 2014 07:30
Do you have the up-to-date AppGameKit?

You have the recent player, but if you're broadcasting from an older version of AppGameKit, that could cause the issue.


If that's not the problem, you could try creating a full screen sprite behind it. My android device has issues with drawing to the backbuffer, so it's necessary to have a backgroudn sprite


Just use
asdf=CreateSprite(0)
SetSprtieSize(asdf,640,480)

The night coda
13
Years of Service
User Offline
Joined: 6th Jul 2010
Location: Hull
Posted: 8th Feb 2014 11:45
ok so i am quite sure i am on the newest version in about it says build 108 and i reinstalled anyway just in case and still no luck so i used your back buffer method.
after which when running on windows i got

and on my Android i got


coding at night always and forever
Markus
Valued Member
20
Years of Service
User Offline
Joined: 10th Apr 2004
Location: Germany
Posted: 8th Feb 2014 13:39
hmm,
did you tryed reboot your device?
did you tryed,stop player,delete all data agk from player and deinstall,
install again from google play?

AGK 108 (B)19 : Windows 8.1 Pro 64 Bit : AMD Radeon HD 6670
The night coda
13
Years of Service
User Offline
Joined: 6th Jul 2010
Location: Hull
Posted: 8th Feb 2014 16:03
Well I had done
Reboot
stop, delete, uninstall and install
but i did it again just in case always the hope but still no look so did an ex-stream and factory ReRomed the device (not a huge deal as its my test device) and still no luck

My Device is
Anova 7 G2
Android 4.0.3
Kernel version 3.0.8+

I have been able to run AppGameKit Virtual Joystick on it before i have attached the test project i am using maybe it could help i get the same results when i get a APK from https://developer.thegamecreators.com/android/create_apk.php
so maybe using my byte code file you could test it on you devices if you want to see.

if you do test on your own.
Dose the APK show the Virtual Joystick?
Dose the Project when run from AppGameKit show the Virtual Joystick on Android?

Thanks for the continuing help

coding at night always and forever

Attachments

Login to view attachments
The night coda
13
Years of Service
User Offline
Joined: 6th Jul 2010
Location: Hull
Posted: 8th Feb 2014 16:34
Ah I fixed it don't know what was
but i uninstalled AppGameKit and deleted the folder in Program Files (x86) and the \AppData\Roaming and when i reinstalled it worked so thanks again for the help and time

My report about this
it may of been down to leaving files in \AppData\Roaming on other re-installs of AGK
Or a random combination of all the things mentioned in the thread
PROBLEM SOLVED

coding at night always and forever
DMJ
12
Years of Service
User Offline
Joined: 6th Sep 2011
Location: Australia
Posted: 26th Feb 2014 20:24
Mine still doesn't work
Markus
Valued Member
20
Years of Service
User Offline
Joined: 10th Apr 2004
Location: Germany
Posted: 27th Feb 2014 10:18
@DMJ
then please wrote/show a checklist from you, what we discussed here
or some details.

AGK 108 (B)19 : Windows 8.1 Pro 64 Bit : AMD Radeon HD 6670
RJMSTATION
10
Years of Service
User Offline
Joined: 5th Mar 2014
Location:
Posted: 24th Apr 2014 23:42
In the snake snacker example game will broadcast to my phone. The phone menue says touch to play. touch screen not working.
I set the Virtual joystick code in the snake snacker example Input From Player inserted AddVirtualJoystick ( 1, 20, 300, 30 )

// main loop
do
ext.etc
the snakehead is detached and moves controlled by mouse courser pointing onto the joystick visible during game. The rest of the snake segs body is stationary. the free floating head is not effected by obstacles in the game. Music plays while the game frozen. Any suggestions how to keep the snake snacker moving while controlled by mouse courser pointing onto the joystick visible during game? I also see a error if snake_xd=-1 at line 649 preventing phone broadcast when edited with virtual joystick commands.

Ronald Millian

Login to post a reply

Server time is: 2024-05-02 19:07:36
Your offset time is: 2024-05-02 19:07:36