Hello, it has been a while since someone post on this but... I need help with this.
I'm trying to make this work on mmf2.5. Is this posible? My wiimote connect to my pc but when I run the app it keeps looking for a wiimote and never stablish any connection.
Any idea on how to make this work?
Posts by gazraet
Welcome to our brand new Clickteam Community Hub! We hope you will enjoy using the new features, which we will be further expanding in the coming months.
A few features including Passport are unavailable initially whilst we monitor stability of the new platform, we hope to bring these online very soon. Small issues will crop up following the import from our old system, including some message formatting, translation accuracy and other things.
Thank you for your patience whilst we've worked on this and we look forward to more exciting community developments soon!
Clickteam.
A few features including Passport are unavailable initially whilst we monitor stability of the new platform, we hope to bring these online very soon. Small issues will crop up following the import from our old system, including some message formatting, translation accuracy and other things.
Thank you for your patience whilst we've worked on this and we look forward to more exciting community developments soon!
Clickteam.
-
-
What an usefull tip. really help me a lot with some objects I had all over so many layers and should be in just one so I can make them all invicible. A lot of counters and alike I dont want the player to see.
Anyway, really helpful, thanks. -
Hello.
I think everytime I have a problem I get across some post of you AyreGuita. I´m currently making some experiments with this AirConsole platform and I get the message function working, so I can send messages from smartphone to screen. But I didnt get the onMessage to work, so the info I try to send from screen to smartphone is not showing.
Do any of your examples do this? (I think the number in the bottom of your pong example work like this but not sure, so I´m asking)
If you know how to do thiswould you mind helping me? Can you explain it or if it is not a problem can I take a look to your source code? -
Sorry if I came late here, but I just had this same problem and I´m trying to spread the word of how did I manage to do it.
first, yes the canvas.toDataURL function works, you write it in the html file as a javascript function and ejecute it from MMF2.5 with the HTML5 object.
But for saving the screenshot I found a quicker way:In MMF2.5 just make a event that load a javascript function using the HTML5 object. (In this case "save")
Use the lib reimg.js Please login to see this link.
Place the reimg.js within your files so the html can find and load it.
And finally in the html file just add this:
<script src="reimg.js"></script>
<script>
function save()
{
var canvas=document.getElementById('MMFCanvas');
ReImg.fromCanvas(canvas).downloadPng()
return ("Save")
};
</script>PS: the return part in the javascript is no needed but I use it to have a feedback in MMF2.5 to see if the function was beeing executed.
-
AyreGuitar - Thanks for your help, your example was very useful. At the moment I´m not in a position where I can pay you so I had to keep working and searching a solution by myself. Anyway, as I said your example help me to undersand what I should do. To anyone who have this same problem, here is what I did.
In MMF2.5 just make a event that load a javascript function using the HTML5 object. (In this case "save")
Use the lib reimg.js Please login to see this link.
Place the reimg.js within your files so the html can find and load it.
And finally in the html file just add this:
<script src="reimg.js"></script>
<script>
function save()
{
var canvas=document.getElementById('MMFCanvas');
ReImg.fromCanvas(canvas).downloadPng()
return ("Save")
};
</script>PS: the return part in the javascript is no needed but I use it to have a feedback in MMF2.5 to see if the function was beeing executed.
PS2: Right Java and JavaScript are two different languages, I know, I just were in a hurry and I misspelled that, but also thanks for pointing that out, maybe it can confuse someone else who was looking for help. -
AyreGuitar - Thanks. Yes it was very usefull, but, I´m kind of in a hurry since I need this for a client and he have a very short deadline. If you can help me test this it will be very usefull. BTW I´m trying to activate some actions running a javascript function, but I´m not so good at java and I´m not sure if mmf2.5 allows it.
For example, in the script of the function I call the close window function but it didnt happen. Anyay, that was just something I wanted to try, for this save screensht I found a lib named canvas2image.js, called it in the html file and added this script:
<script src="canvas2image.js"></script>
<script>
function grabscreen()
{
var canvas=document.getElementById('MMFCanvas');
return (canvas.toDataURL('image/png'));
Canvas2Image.SaveAsPNG('MMFCanvas')
}
</script>This should work? am I doing something wrong?
Please if you can help me I will be very grateful -
Hello, I see this t is a little old but it was very usefull to me.
BUT... I still have some troubles, I managed to take the screenshot, but the url the function retrives is a weird thing... not sure how to explain. Anyway, I need to be able to save the screenshot.
And if posible, send it via email, and print.
Please tell me there is a way. -
Thanks a lot for this man.
I spend almost a day looking for this and the answer was so easy.
Really good work, very clear. Thanks