Playmaker Forum
PlayMaker Help & Tips => PlayMaker Help => Topic started by: Franck on November 07, 2019, 03:32:31 PM
-
Hi there,
I bought the asset Playmaker Samples few months ago and I wish to make a game with in it a mini quiz game. Then I took the Quiz Sample from Playmaker Samples.
The problem is that I don't know if it's compatible with smartphones. When I build the master project I can't press the buttons on android, it does nothing.
Is it a configuration or just not compatible with smartphones?
Thanks
-
Hi,
It is a sample and probably does not have touch actions.
I am also not sure if xml can be used on mobile.
I can't look right now and will be traveling till Wednesday.
But ping me by Thursday if i did not reply yet :)
-
Hi djaydino,
thanks for your answer. I will try to take a look myself and if I can't find the solution I will come back here on Thursday.
-
About the XML file I think it work on Android platform. When I launch the project without the main menu there is the question and the answers on the screen then I think it work.
-
Hi,
Xml can be used on IOS Android, but not on Windows mobile, I did many mobile apps on IOS and android using xmlMaker.
Bye,
Jean
-
Hi jeanfabre,
thanks for your answer. Good to ear that ;)
-
Hi djaydino,
I'm sorry to bother you but I did not manage to run the buttons on Android.
I tried with the function built into Unity (on event) but it does not work either.
Thanks
-
I also just recently purchased the Playmaker Samples from the UAS and I've encountered problems trying to run some of them. I installed the required actions from the Ecosystem before loading the sample.
I started with the Card Game example are a lot of errors that appear in the console. As well as the Dynamic Boxes example. They seem to stem from a lot of uGUI issues.
I was very much hoping to learn from some of these.
-
Hi lykanthrope,
in order to use the samples you need to download the proper action in the ecosystem. To do that you need to go in tools --> JinxsterGames --> PmSamples --> Samples
Now you have a windows. Click on Card Game Drag And Drop and look at the missing actions. You have a GET button on the right to go to ecosystem.
I tried the sample and it work for me.
But please djaydino I can't manage to work with Trivia Quiz for Android :(
-
bump
-
Pleaaaase djaydino i'm so stuck :'(
-
I tried to look in the FSM's in order to add UI Buttons but I don't know how and where because these buttons are never at the same place
-
Hi,
you need to make sure the canvas is scaling properly depenging on the ratio and screen size, you can test this in editor by changing the resolution of the game view. It's critical that it first looks good for the resolution or ratio you might encounter on mobiles.
Bye,
Jean
-
Hi jeanfabre,
thanks a lot for your answer.
The canvas scaling is ok for all resolutions. The problem is that there is not UI Buttons in the sample then impossible to work on mobiles. It just work on PC.
And I don't know where to add the UI Buttons in the FSM's because there are 4 Buttons for the answers and they change their places anytime.
I really hope that djaydino can make something to help me because at this point I'm completly stuck :(
-
Hi.
Sorry for the late reply, its been some hectic weeks for me.
its been a while that i did something on android so i had to install sdk etc to test :)
i noticed that when buttons are pressed they do change color, and they are ui buttons.
So something else is stopping it from continuing i think.
i will try to narrow down the issue this weekend
-
I'm glad you went there, I did not believe it anymore :)
Ok I wait for you and i hope a solution :)
-
Hi.
The action Ui Button Array and my version Ui Button Array Indexed are not working on android at the moment.
I have reported to Jean and we will have a look at it asap
-
Hi djaydino,
thanks for the reply.
Playmaker should be upgraded or there is a new action to create?
Have you a little idea of when the "patch" will be there?
-
Hi.
You need to re-download "UiButtonArrayIndex" action (Ecosystem (https://hutonggames.fogbugz.com/default.asp?W1181))
also you need to add a next frame event here :
(https://i.imgur.com/s4PfK0L.png)
that made it work on my end
-
Djaydino YOU THE MAN !
It work now.
I updated the "UiButtonArrayIndex" action and added a NEXT FRAME EVENT like you said but not at the same place because I don't use the first panel where you can choose the categories. I added this NEXT FRAME EVENT between "Set Answer Button" and "Get Next Answer". I don't know if that's what made it work but in any case it works perfectly.
Thanks again djaydino, great thanks!
-
Hi.
i don't think that on the set answer it is needed as its not looping like the category but it wont hurt.
-
djaydino,
is there a way to paint in green the correct answer when you click on the wrong one? In order to know what is the correct answer even if you click the wrong one.
-
Hi,
After 'wrong' loop thru the answers and do the same compare as on 'Check Answer'
when correct. See Gif below
(https://i.imgur.com/3NyWfko.gif)
-
Thanks djaydino it work perfectly.
I just change a little thing because of a bug. In the state "Array Get Next" for the finish event I change from ERROR to Next because every time it goes to error.
-
hi. did you check why it gives an error?
Usually there is something wrong is it goes to error.
-
Hi djaydino,
my understanding of playmaker and mostly XML and stuff is too low to see what's wrong. I just try to fix as I can. And because of you I learn a lot of stuff ;)
Next question if you allow me. Is it possible to delete the question just asked in the XML file?
Why...? I wish to delete the question just asked to have an empty XML file when all questions are asked in order to give the possibility to download a new XML file with new questions.
-
Hi.
I believe that you can only remove from a reference but it will not change the file
so when you stop the game and play again it would not be removed.
You can maybe save somehow if all questions where answered and then the next time you play, it can download a xml (and probably you need to use 'ConvertCsvStringToXmlNode')
and then use that xml.