Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Messages - andelmar02

Pages: 1 2 3
Ask a Question / Re: What is The best scaling mode for mobile ?
« on: January 22, 2018, 08:22:38 pm »
Why are we still using 480 x 320? Nobody has that screen size anymore... Why not iPhone 4 resolution, 960 x 640?
960x640 may seem better at first, but it's actually worse overall (even for iOS exclusive), and here's why:
iPhone 4/5/6/7: 480x320 = 2x and 960x640 = 1x [winner = tie]
iPhone 6/7 Plus: 480x320 = 3x and 960x640 = 1x [winner = 480x320]
All iPads: 480x320 = 4x and 960x640 = 2x [winner = tie]

P.S. My current Android phone still has a resolution of 480x320.

I think this explanation should be added on the "Create a New Game..." page under Screen Size, where it recommends using 320x480 for mobile games. Maybe as  a "Why?" hyperlink-style tooltip.

Food for someone's thought. 

Ask a Question / Re: How to Copy to Clipboard for Android?
« on: January 21, 2017, 02:22:17 pm »
Maybe you're supposed to use openfl.desktop.Clipboard ?
That doesn't seem to exist in legacy OpenFL which is why he's getting an unknown identifier.  He'll either need to make a native Android extension now or wait for the OpenFL update sometime next year.  (EDIT: assuming he wants to use the clipboard, but there are other ways he can get his feedback)

So the reason I thought to do it this way, is because this is for feedback from remote playtesters. I have a website with an online form. I want the games score-holding attributes copied to the clipboard on button press or swipe down, an action that also navigates to my online form. I want them to be able to simply paste this info into the online form. If there is another way for me to get their honest score, along with their feedback, that would be awesome. I'm extremely open to suggestions/ideas. 

Ask a Question / Re: How to Copy to Clipboard for Android?
« on: November 27, 2016, 01:23:30 pm »
I doubt this can be done with Haxe. You can make an extension but you need to learn how to do it.
What are you trying to do?
It could be that using the Simple Share extension is all you need. (

So what I'm trying to do is get user feedback for my prototype. On my website, I have a form where users can write in feedback. However, I also want the phone model, OS version, and score values to be shared as well. However, to go around the user having to provide this manually, I'm making it so that when they click the button to go to my website, it copies certain attributes which they can paste in a box. I have this working just fine with Flash, however, as my target platform is Android, I need to be able to copy simple text to the clipboard on Android devices.

I've looked at that extension before coming to this solution, but it's geared more toward putting the word out there, where as I just want testers to be able to quickly communicate to me.

Ask a Question / Re: How to Copy to Clipboard for Android?
« on: November 26, 2016, 12:47:14 pm »
Thanks for the suggestion SadiQ.

I attempted to use openfl instead, and this is my current status. I've tried this code

Import Statements only on Android
......[import openfl.desktop.Clipboard;]

When the device is swiped (down)
..set FullScoreInfo to (text) only on Android
........[var textToCopy:String = Engine.engine.getGameAttribute("FullScoreInfo");
........Clipboard.setData(String, textToCopy);]

However, I'm still getting the following error:

Send Feedback: Unknown identifier : Clipboard
   from scripts.Design_48_48_SendFeedback
   line: 101
   columns: 0-9
Send Feedback: Unknown identifier : Clipboard
   from scripts.Design_48_48_SendFeedback
   line: 102
   columns: 0-9

Looked all over the internet, and from the little I've found, it's indicating that the method call should be Clipboard.setData... I've tried others that I've seen as well such as Clipboard.setText(), but no dice. Any suggestions?

Ask a Question / How to Copy to Clipboard for Android?
« on: November 25, 2016, 10:53:11 pm »
Hello! I'm trying to do what I thought would be a simple feat: copy a text attribute to the clipboard on android (by swiping down).

I've managed to pull it off with a button press on Flash with the following blocks and code snippets:

Import Statements only in flash
......[import flash.desktop.Clipboard;
......import flash.desktop.ClipboardFormats;]

When (x) is pressed
..set FullScoreInfo to (text)
....[do only in Flash]
........[var textToCopy:String = Engine.engine.getGameAttribute("FullScoreInfo");
........Clipboard.generalClipboard.setData(ClipboardFormats.TEXT_FORMAT, textToCopy, false);]

However, Android is proving to be a bit more difficult. This is what I have so far:

Import Statements only on Android
......[import android.os.Environment;
......import android.content.ClipData;
......import android.content.ClipboardManager;
......import android.os.Bundle;]

When the device is swiped (down)
..set FullScoreInfo to (text) only on Android
........[ClipData myClip;
........String text = Engine.engine.getGameAttribute("FullScoreInfo");
........myClip = ClipData.newPlainText("text", text);

Unfortunately, when I attempt to test the game, I get the following issues:

Send Feedback: Missing ;
   from scripts.Design_48_48_SendFeedback
   line: 107
   columns: 4-12
Send Feedback: Missing ;
   from scripts.Design_48_48_SendFeedback
   line: 108
   columns: 0-6
Send Feedback: Type not found : android.os.Environment
   from scripts.Design_48_48_SendFeedback
   line: 78
   columns: 7-29

Any insight into how this can be done would be greatly appreciated. Thanks!



Got months into my project, which I haven't backed up in quite some time, and now I've run into an issue: I try to open the game and get:

Could not open game. Could not restore from backup.

Seeing what apparently most have seen, where the game.xml and game.xml.bak seem to be empty when opened in notepad. Has anyone had luck with fixing this issue? I've attached a .zip of my project if it helps!


Bug Archives / Re: Update from 3.1 to 3.3 Actors Missing
« on: July 03, 2015, 01:38:41 pm »
Darn. I've assigned more memory and haven't received the 90% warning, but the game still isn't saving any of the graphics I upload. Every time I reopen it, they default to the warning symbol.

Bug Archives / Re: Update from 3.1 to 3.3 Actors Missing
« on: June 26, 2015, 05:26:24 pm »
Okay, after a few more things, I got the memory solution worked out. BUT do you think my file is broken beyond repair because of the persistent memory issue?

Bug Archives / Re: Update from 3.1 to 3.3 Actors Missing
« on: June 23, 2015, 10:10:26 am »
It looks like you've been running out of memory:
Code: [Select]
2015-06-21 18:07:34,770 WARN  [Timer-0] stencyl.sw.SW: Running low on free memory: 100.0
When you see the 90% memory make sure to restart Stencyl. See this article on how to increase your JVM memory:

Yes, I have. But when I tried to create the batch file and increase the memory to anything higher, I would get an error saying "could not reserve space for XXXXXXX object heap," even after updating Java and deleting the Java environment variable capping it at 512M. 

Bug Archives / Re: Update from 3.1 to 3.3 Actors Missing
« on: June 22, 2015, 09:28:34 am »
Hm, no, I don't know either. Could you post new logs?

Okay, I've attached logs. To clarify though, after uploading the new sprites, saving, and closing Stencyl, all of the sprites would be gone upon reopening the game.

SO, I've been wondering from the beginning: In game's folder, all of my sprites are there in the "resources" folder. Every sprite I have in the game. BUT it's like the game can't find them. Is there a way to "point" the game to the resources folder to get all of the sprites working again?

Bug Archives / Re: Update from 3.1 to 3.3 Actors Missing
« on: June 21, 2015, 05:34:41 pm »
I think you'll be able to open it with the new 3.3.1 release.

You're right, 3.3.1 got me past the consistent "Opening..." message, which is great.
BUT, I've uploaded the sprites again, and they disappear after saving and returning to the game!!
I don't understand what could be going wrong, do you?

Bug Archives / Re: Update from 3.1 to 3.3 Actors Missing
« on: June 13, 2015, 10:22:56 am »
Sorry for taking so long. I looked now: Somehow your actors lack a reference to their sprites in the data.xml.

Do you have a backup?

I made a change in the private build that would allow you to at least open the actor falling back to an empty sprite, but that would not help much with recovering them.

Yes, I do have backups for all of my actor images. You said you were able to pass the constant "Opening..." message? That was be the biggest problem. Could you tell me how you were able to do that? From there, re-uploading all of the actor images again shouldn't be too hard.

Bug Archives / Re: Update from 3.1 to 3.3 Actors Missing
« on: June 08, 2015, 10:08:54 am »
Would you mind sharing your game with me so I can take a look?

Did you ever get a chance to look at it captaincomic?

Bug Archives / Re: Update from 3.1 to 3.3 Actors Missing
« on: May 18, 2015, 09:27:49 am »
Oh wow, sorry. I've been waiting for a response, and didn't realize my post didn't go through, probably because the file size is too big (49,711KB). Here's a direct link to download the .stencyl file:

Thanks so much!!

Pages: 1 2 3