TheStoepsel2001's Forum Posts

  • As far as I remember, it is not possible to make an inverse from a trigger-event, i.e. the OnSomething-Events with the tiny green arrows next to them. This is a restriction that kind of makes sense, since triggers do not describe a state (like IsOverlapping), but rather a "once-in-a-moment"-event that can hardly be inversed ;o)

    However, BluePhaze's approach looks pretty solid! Hope it works for your game!!! ;-)

    Regards,

    Chris

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Thanks a lot, Ashley!

  • SketchyLogic: Your option 1 sounds pretty much rock solid to me ;o) That's exactly the solution I thought of too when I read the question above.

    Regarding option 2: I do not have proof, but in one of the performance tutorials I found a hint that "scrolling to" would be much less ressource-consuming than moving objects.

    (see here: scirra.com/tutorials/298/performance-tips-for-mobile-games "10 - Scroll to is faster than moving eveyting").

    Don't know if that matters to austinpayne26, but to me the sketch above looks like your developing for mobile. In that case you might want to take that issue into account ;o)

    Regards,

    Chris

  • What I do is I create the overlay/popup outside my viewport (i.e. somewhere where the camera never goes), put all the Buttons and Labels etc. on top using the Pin-Behaviour and then move it to the viewport when it is supposed to appear. That way you never have any problems that you might trigger a invisible button. As Kyatric described above, it requires some level of organisation, but it turns out to work quite well...

    However, if you encounter any performance issues in your specific game and want to save ressources, try going down the road Joannesalfa described. It'll save you some GameObjects during gameplay until you really need to display them! ;-)

    Just an additional idea to stay organized: You might want to put the "Popup-Events" (triggering buttons etc.) into their own group: That way you can activate and deactivate them with a single activate group action in your EventSheet.

  • If you did not use Construct 2 to build the game in the first place I would assume it is pretty much impossible to import it into Construct 2... What engine/tools did you use to build the game in the first place? It is YOUR game, isn't it?

    Regards,

    Chris

  • Hi Meloo, I just had a brief look at your capx. I could find the Every 1.0 Second event that triggers the substraction on the "Timer"-Variable, but I could not find the action where you write that new value on the screen. Maybe you want to add a "Set ToStart-Text to 3-Timer"-Action to the "Every 1.0 Second"-Event, right after the Timer-Variable-Update!?

  • Hi guys, I have a question regarding perfomance when comparing a game built with Eclipse/Phonegap localy on the one hand and the same game built with CocoonJS on the other hand:

    I tried building my game with phonegap and then using eclipse for building localy, because I read that this might improve my game's performance a lot (read here: scirra.com/tutorials/298/performance-tips-for-mobile-games, section "lrn2code"). However, I figured out that the version of my game built with CocoonJS runs really smoothly, while the one I built localy runs with as little as 10 FPS. Do you guys have any ideas why that is and how I could improve performance with a localy built apk???

  • Hi BluePhaze and Ashley,

    thanks a lot for your responses. As far as I can see, the CocoonJS and Appmobi objects do not support those triggers.

    Ashley: That's great news. However, doesn't the CocoonJS-Tutorial state that Construct 2's "Browser-Object" is not being supported?

    Chris

    EDIT: Oh I see. The Tut states that "Most features of the Browser object are not supported." - Is there a list out there that says which features are supported and which are not?

  • Hi again. No ideas? I was thinking about regularly saving my game in fixed time intervals or game events. But both options do not really suit the style of my game... Any ideas?

  • Good Evening Gentlemen,

    I am eager to know if there is any way to handle lifecycle events on mobile devices? I.e. I want my game to save the player's progress when my app is minimized on android or iOS devices. Are there any common practices to achieve that?

    When coding a native app for Android (as an example) you can always respond to onPause() or onStop()-Events and put all your data- or game-saving-code in there. Is there any system-event or something that is triggered when the app is minimized or "short-to-be-terminated"?

    Are there any other common saving-procedures that the dedicated C2-user should use?

    Regards,

    Chris

  • Thanks a lot for clarification!

  • ramones: Thanks for your response. First of all, that sounds good. However, why is it stated in the "Export to CocoonJS"-Tutorial that "The WebStorage plugin's session storage is not available. Use local storage or global variables instead." - That doesn't make sense to me if WebStorage and local storage are both the same, does it!?

    How is this passage of the tutorial to be understood?

  • I just noticed this thread - and even though it's over six months old, this topic is pretty up to date to me ;o) Is there any guide out there explaining how LOCAL storage works? Couldn't find any tutorials on that... And there is only the web storage object, no local storage!? How do you use local storage to get a CocoonJS-compatible export??? ;o)

  • : Thanks a lot for the link! Looks very interesting. Weird that I didn't find that post with google!?

    Chris

  • Thanks for your quick responses.

    thehen, you are right. Wikipedia states that openfeint was shut down ("On November 16, 2012, GREE announced that it would be discontinuing the service on December 14, 2012, primarily in favor of its own similar platform." ~ en.wikipedia.org/wiki/OpenFeint)

    I'll do some research on phonegap and CocoonJS, too. As far as I understand your answers, there is currently no way to integrate Game Center.

    : So, integrating openfeint/GREE might be possible via phonegap!? How do you access those features? There is no "phonegap"-object to add, is it?