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 - out2lunch

Pages: 1 2
iPhone / iPad / Android / Re: Clacky Train!
« on: May 25, 2015, 07:05:45 pm »
As Blaziken8x said to add an event: Add event --> Input --> click.

Then check if the Y of the mouse (input event) is less than half the screen height, and that'll be the top half of any sized screen.  Like so:

iPhone / iPad / Android / Re: Clacky Train!
« on: September 27, 2014, 04:39:46 pm »
We updated Clacky Train with widescreen support for iPhone 5/6.  Thanks for the tip!

And there's more cargo items and a new background.  Have fun!

iPhone / iPad / Android / Re: Clacky Train!
« on: August 22, 2014, 07:22:14 pm »
Max, thanks for the tip.  A wider scene on some devices would change the gameplay so we'd have to figure out how to handle that.

I don't think we got special treatment from Apple, so they must be more lenient on that rule these days.

This article has good tips, plus those email addresses:
The marketing team does its best to seek out the best content. They take emails at and These teams want to know about a game, track its progress, and evangelize it within Apple.

iPhone / iPad / Android / Re: Clacky Train!
« on: August 17, 2014, 04:58:51 pm »
Max thanks for the feedback!  Yes the train engine comes out first then just the cars follow and the gameplay starts.  I guess sometimes the random generator makes them slow to come out.  We considered portait mode but it'd be way harder to get the cargo in the traincars with such a short distance to travel.

Yes Apple approved us and we have Flurry stats that show they tested on all widescreen devices.  I didn't know it was against the rules!  How do we fix that?

iPhone / iPad / Android / Re: Clacky Train!
« on: August 16, 2014, 04:42:31 am »
Hi, thanks for your feedback, we're glad you liked it!  I wrote down your suggestion for the next release.

The best way to help is to tweet or like us on facebook, to help spread the word.  Thank you for your kindness!

iPhone / iPad / Android / Re: Clacky Train!
« on: August 15, 2014, 11:53:58 pm »
Hi everyone, we just released Clacky Train worldwide!  Let us know what you think.

Ask a Question / Re: JAVA SDK ISSUE
« on: June 30, 2014, 12:28:51 am »
I assume the post in this link is a continuation of this thread?  I replied in there:,30088.0.html

Your log says it can't find the Java 6 jdk, and it tries to look in a jre folder.  Are you sure you installed the JDK (different than the JRE)?
Code: [Select]
[LOG] JAVA_HOME is set? true
[LOG] JAVA_HOME = null
[LOG] JAVA_HOME Exists? false
[LOG] JAVA_HOME points to a valid JDK? false
[ERR] No JDK found. Attempting to install or ask for the JDK.
[LOG] We're on Windows, searching for the JDK in default locations.
[LOG] These locations are: [Ljava.lang.String;@21f9dd
[LOG] Looking at this location... C:\Program Files (x86)\Java\
[LOG] Looking at this location... C:\Program Files\Java\
[LOG] Location is a directory... C:\Program Files\Java\
[LOG] Looking at this file... C:\Program Files\Java\jre6
[LOG] Looking at this location... C:\Java\
[LOG] Nope, there is no JDK. Ask the user now.
[LOG] JAVA_HOME is now: null
[ERR] Still no JDK is installed. Can't proceed. Either user canceled JDK installation or something is wrong on the user's end.
[LOG] Aborting Android build.

Fixed Bugs (3.x) / Re: Slice in Utils.removeValueFromArray
« on: April 11, 2014, 02:18:34 am »
No I haven't had any problems with it yet, I've just got an eagle eye for those types of bugs.  ;D

In theory it'd be rare that an out of bounds value, which would be something else's memory, could actually match what it's checking against.  But you really don't want to have to track down out of bounds array bugs, they're a nightmare.

Big thanks to mackaliciouz for finding the splice bug!  Go team!

Fixed Bugs (3.x) / Re: Slice in Utils.removeValueFromArray
« on: April 11, 2014, 01:50:39 am »
Examining that function more closely, the first time it checks arr it's out of bounds, no?
Shouldn't it be  var i:Int = len - 1;
Code: [Select]
var len:Int = arr.length;
var i:Int = len;
while(i > -1)
if(arr[i] == value)
arr.splice(i, 1);

Same goes for contains below it:
Code: [Select]
public static function contains(arr:Array<Dynamic>, value:Dynamic):Bool
var len:Int = arr.length;
var i:Int = len;
while(i > -1)
if(arr[i] == value)
return true;
return false;

Ok, an extension is in progress.   PM me for details.

This is for Jon and the gang.

With the "half-width of Self" and "half-height of Self" blocks, Stencyl pastes in actor.getWidth()/2 and actor.getHeight()/2 into the code, but doesn't put parenthesis around them.  Most cases are ok except when used with another division where operator precedence gives the wrong answer.  Here's some examples:

(5 * 5) / 2 = 12.5   (Precedence will force this to happen, luckily equalling the intended one)
5 * (5 / 2) = 12.5   (Intended precedence)

(5 / 5) / 2 = 0.5   (Precedence groups them left to right, so this is the answer given instead of the intended one)
5 / (5 / 2) = 2.0   (Intended precedence)

5 + (5 / 2) = 7.5   (Precedence will force this to match the intended one)
5 + (5 / 2) = 7.5   (Intended precedence)

5 - (5 / 2) = 2.5   (Precedence will force this to match the intended one)
5 - (5 / 2) = 2.5   (Intended precedence)

Operator precedence:

So, can Stencyl put parenthesis around them? ex: (actor.getWidth()/2)

Suggestion Archives / Re: Make "draw image" reflect grow block
« on: December 12, 2013, 06:01:17 pm »
Do you mean actor.realScaleX?  I'm pretty sure I tried that and it didn't work.  I don't see any scaling in G.drawImage(), just rotation and translation.

EDIT: After messing with G.drawImage() in Flash, I am able to scale it and even mirror it.  So there's hope.

Suggestion Archives / Re: "join list using separator" block
« on: December 12, 2013, 04:15:13 pm »
I wasn't asking for a workaround, I already have the join code in my project.  I was suggesting something that programmers would appreciate and understand - a nice one liner that does everything for you instead of the mess you have to make to work around it.

Since Stencyl already has split, I thought it's counterpart might be appreciated.

Pages: 1 2