BouncyTrip's Forum Posts

  • Oh, I'm glad to know I'm not the only one who experienced that!

    That said, on pc I found the opposite situation:

    -(very)Fast simulation with asm.js

    -some micro-lags with box2D web.

    Thank you for your Reply

  • Hello!

    I noticed that on my android device asm.JS causes some lag, and by lag I mean that sometimes it freezes for something like 0.1 seconds.

    Instead, Box2DWeb works perfectly.

    Also, I've read about a future Box2DWeb deprecation, but why removing it if it works better than asm.js on mobile?

    What are your thoughts?

    *Sorry for my english

    *The CPU is Snapdragon800

    *My app is compiled with Intel XDK

  • Is this what you want?

    I added a pin behaviour to your exhaust so it always follows the rocket, set the gravity to 0 and removed that angle(rocket.x,rocket.y,touch.x,touch.y)+180 because it was useless.

    When I told you to use that expression for your game, it was intended for making the rocket escape from you finger.

    Here's the .capx [attachment=0:14nk5wda]

  • Just apply force at a specified angle when you touch the screen.

    Angle(Rocket.X,Rocket.Y,Touch.X,Touch.Y) for moving rocket toward touch input

    Angle(Rocket.X,Rocket.Y,Touch.X,Touch.Y)+180 for moving rocket in opposite direction from touch input.

    Tomorrow I'll be home and if this doesn't work for you, I'll try something else

  • THANK YOU!

    I thought that it was possible to save Dictionary's instance variables too but i was wrong, your .capx made me understand that dictionary can save Keys but not instance variables so i got around it, adapted it to my game and now it WORKS!

  • Tomorrow I'll be home ready for testing it! I hope it will make my day

  • Oh, it seems that everything is ok, if you add the buttons and test the performance, let us know

  • TRY THIS:

    For Saving:

    Use the save action whenever you want

    For Loading:

    Set the first layout to the one that will load data, and make it load the game on start of layout or go to a specific layout if it fails to load (when there's no save) like this:

    [attachment=0:a70fgryn][/attachment:a70fgryn]

    Then, it will bring you to the last place you have saved, but we don't want that. So set this condition on every event sheet:

    [attachment=1:a70fgryn][/attachment:a70fgryn]

    Place that condition everywhere but not in the destination layout (for example Startscreen), or it will loop.

  • 70%??

    On mobile I hope!

    How much big is your png map?

  • If you are just trying to follow an object on a screen use System's Action "Scroll to" or do this if you want a smooth scroll (Bouncer is the object to be followed):[attachment=0:3ez7c62m][/attachment:3ez7c62m]

    In this case the number 0.1 defines the delay of scrolling, making it slower or faster

  • I hope this will make your day a happy day :

    https://www.scirra.com/tutorials/560/swipe-based-smooth-scrolling-with-inertia

    Just download the .capx file on the upper left side of the post and adapt it to your project

  • Hello!

    CocoonJS doesn't support device buttons, it is necessary to export via Crosswalk/Cordova for Intel XDK or phonegap.

    In this case you just need to add the Browser object to your project and use these events for your device's buttons:

    [attachment=0:2prbi79n][/attachment:2prbi79n]

  • Instead of using List, you could create an image with the same aspect of the list with interactive SpriteText on, that places itself to the position you prefer when you click something, and that places itself out of layout when you don't need it anymore.

    Example:

    We have a list of skins we can put on a character, but they are locked:

    [attachment=1:1novyf2q][/attachment:1novyf2q]

    Now, when we press on a locked button (in this case the plant) construct2 moves the buttons outside layout, and places the popup at the same position:

    [attachment=0:1novyf2q][/attachment:1novyf2q]

    Obviously you don't need to move them all, just Pin the objects to another one and move that one.

    In my case the buttons are pin'd to the first button, and the popup that appears is made by text and sprites pin'd to the "buy button"

    *Sorry for my terrible english

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Have you checked if your previous layout is placed over your current layout?

    I mean this, supposing whe are actually playing on LVL5:[attachment=0:fiupxdoa][/attachment:fiupxdoa]

    The previous layout is the one that is over your current layout in the "Projects" bar.

  • Your idea of creating three transparent buttons is perfect for this purpose, you could also make them opaque but set them invisible on their properties.

    Performance shouldn't be affected by only three objects . I'm making a game where there are 65 buttons in only one layout and performance is a little bit affected