ranma's Forum Posts

  • ok, got it, I am an idiot. thanks cow_trix :)

  • well my capx is nearly finished game, so please do understand why I didn't post it. just when testing yesterday I noticed a huge slowdown which after investigation lead me to not destroying objects when left of layout.

    also wow, now I just have to find out where is the problem on my side as it clearly works for you :) thanks. it seems in my project it destroys some of the targets, and leaves some there, as the count sometimes drops, but the general number constantly rises :/

  • This is more of a game logic / event logic question, bear with me please :)

    Window is 640x480

    I have a layout, it has 1000000 width, 480 height, and there is a bullet flying through from left to right, screen is set to every tick scroll to bullet. You control the bullet up/down.

    Every tick on random(10)<2 I create a target on Y random(480), X = scrollx+640 (on the right, off the screen, so it appears in a second and goes from right to left, so that you can hit it with your bullet)

    easy enough, the problem starts after a few whiles, because of the targets you didn't hit stay to the left of view, right? best thing to do is destroy them, if they are on the left side of view. so, I did and this is crucial:

    target: compare X < scrollX - 640

    it should work right? well guess what, it doesn't :) is there something with my brain or is it a huge bug in construct?

  • make an object with three instance variables:

    oldX, newX, swipespeed we will calculate horizontal swiping speed and put it into swipespeed in every tick:

    is in touch

    -- set oldX to newX

    -- set newX to touch.X

    -- set swipespeed to abs(newX - oldX)

    cheers

  • ah yes, this does not apply when exported to appmobi for some reason.

  • dl.dropbox.com/u/59009902/text%20over%20sprite.capx

    two layers. on top layer we have a sprite, on bottom layer we have a text object, when previewed, the text is over sprite despite being under it :)

    also, in the editor, the text is not displayed for some reason, this occured only in this project, so maybe it's just me :)

  • if you do a fullscreen in crop mode, it doesn't resize your app and shouldn't suffer from resizing

  • hell yeah! love ya all!

  • Ashley Thanks. In the meantime can you do some kind of disable / enable touch plugin? as this really got me blocked totally for now.

  • create appmobi project in xdk, from there open the project folder and remove every file from there, then move all the files exported from construct into it (not the folder that was exported, files from it, so the index.html file is in the appmobi project folder) and that should work.

  • i just tried, but it worked without problems. maybe it was r76 specific as I didn't use minifier since then and updated to 77 in the meantime.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • minifier has some problems when exporting for mobiles (phonegap / appmobi) just don't use it :) this actually should be postes as a bug, shouldn't it?

  • Ashley

    correct me if i just wrote complete nonsense, but if touch is some kind of listener, can't you just make some kind of check if tapped over a button in the callback function?

    the disabling and enabling touch plugin as you mentioned would be quite good workaround for now as other touchable sprites would just have to be converted to controls (buttons) and it would work just fine then. would love to see it.

    cheers and thanks!

  • well this is preety much the same, but you didn't take into account the delta time (dt expression) which can really mess up your creation :) cheers!

  • just wanted to add this bug myself, so I got prepared:

    providing a capx: dl.dropbox.com/u/59009902/test.capx

    and APK (as on android this doesn't work also): dl.dropbox.com/u/59009902/touch-test.apk

    This really blocks my nearly finished app, as I cannot provide players the option to get their name to scoreboards :(