ranma's Recent Forum Activity

  • The one very important functionality (at least for me) missing that was in construct classic, is "pick by comparison" where you could pick a sprite by comparing its... whatever, say instance variable.

    For anyone wondering how to achieve that now (not a very good way to do this, but as far as i know, the only way, so Ashley goes the question is there any other, more optimal way, or is there a chance to add this functionality) is to create an event like this:

    + pick all Sprite

    + for each Sprite

    + if Sprite instance variable Sth = 1

    = do something

    cheers!

  • i thought that versioncode is incremented automatically in each export. if not, i think this is a bug worth noticing

  • in C2 in the project properties update its version to higher before exporting.

  • well no problem for me it's not changelogged :) thanks and cheers!

  • around 2 fps gain. not much but still... :)

  • Today I present you with Gold Rush a fast paced gold mining game for Android :)

    Available on Android Market for free!

    Have Fun!

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Well not really a bug, but I didn't know where to post it and I want this to catch someone's attention badly, so Ashley :)

    I did some experiments with mobile exports as you may know already and it came to me, that doing pixel rounding the way it's done in the runtime by Math.round(x) is the slowest way available to round a number.

    Done some research and it seems that you can achieve double the speed by rounding using something called a Hack rounding with bitwise or:

    rounded = (0.5 + somenum) | 0;

    tested it by changing every instance of

    if (this.runtime.pixel_rounding) ... Math.round

    to the above code and i could actually see a little performance boost in more complex creations.

    so... any chance this would be implemented in next c2 version pretty please? :)

    cheers!

  • ah, also, rexrainbow if you're using:

    <video src="..."></video>

    i think this is bad. you shoud use this in your plugin:

    <video>

    <source src="video/video.ogv">

    </video>

  • for anyone wondering, this plugin cannot be used in android applications, it will throw exception: ERROR/http(2882): Null or empty value for header "Host". don't know why really, seems like android browser cannot play local videos from android_asset folder. as per http://stackoverflow.com/questions/5865946/how-to-play-video-in-android-web-view-using-html5 videos CAN be played from SD card, or by removing src attribute and controlling <video> by javascript. sad :(

  • one question, if you were to play the game in your phone's browser by using preview on LAN or dropbox, does it play at the same FPS? what's the difference?

    reason I ask is because the game that I'm working on hasn't been tested as a native app yet, only in phone browsers where it's too slow. and since I haven't built it yet with PhoneGap I'm hoping it gains some speed when I do. did build it with appMobi and it was like 2FPS :(

    it will play slightly faster, but not too much. if it's 2fps in appmobi, i wouldn't expect more on phonegap, optimize your game graphics, remember that mobile phones have poor hardware, dont use particles, big sprites, lots of animations. watch out for sprite resizing and changing their angle.

    I think that everything will be much better when Construct 2 will total support AppMobi and mainly the "AppMobi Direct Canvas Accelerates". So let's ask Ashley to make this possible.

    You can see this page that say how much the improvement is possible...it's just fabulous:s I recall, direct canvas only works on ios devices, the android DC was scheduled to 1Q2012 but isnt available yet.

  • Thanks again for all your kind words :)

    ranma

    Could you help me out, i can't find the 1.4.1 version anywhere...

    rgros

    phonegap 1.4.1 was included in every phonegap export from C2 in versions prior to 85, since phonegap build doesn't need it, you don't need it too :) If you're using eclipse to build your app, there's no reason actually to use 1.4.1 version, use most recent one.

  • when a first browser window is closed, the second one becames the default (thus first) browser. it's this way since I remember :)

    cheers

ranma's avatar

ranma

Member since 20 Feb, 2008

None one is following ranma yet!

Connect with ranma

Trophy Case

  • 16-Year Club
  • Coach One of your tutorials has over 1,000 readers
  • Educator One of your tutorials has over 10,000 readers
  • Email Verified

Progress

19/44
How to earn trophies