henriquesv's Forum Posts

  • Hello guys!

    I am working on a game that is actually pretty simple. The thing here is that it performance is really low! It is possible to play it on Desktop Computers somehow... but it gets ugly on Android or iOS.

    Here is an image of its debug running. Any ideas on how I could improve its performance?

    For this game I have a chronometer (showing minutes and seconds), 16 objects using collision detection, 4 unmovable objects as walls and 4 objects as detection areas / zones.

    Also (maybe it is here) on every tick I count how many of those 16 objects are on each of the detection areas.

    Any ideas? Thanks!

  • HZGaming, thanks! It is working now!

  • Also.. check this one:

    You can save the X and Y of the object into a variable as soon as a touch event happens. When you release it you canset an action to force/impulse towards those coordinates.

  • You can do it just like that!

    You can randomly generate a new number every Tick and store it in a Global variable. You may trigger these actions (calling funcions) or you may use the same Tick trigger (of course doing this way you will probably consume more resources of the system).

    Use Events to compare 1 variable to a number and then Spawn that object. Duplicate this event to proper variable and action.

    Let me know if that helps you out.

    Cheers!

  • Try this instead: Set Physics velocity to ((Touch.X - Object.X) * 10, (Touch.Y - Object.Y) * 10)

    Before, I've tried "Force" and "Impulse".

  • You're welcome! Please wait until the end of the day... =)

    Too much work around here.

  • RenatoB, I have improved it a little bit (to my needs). I will post it here ASAP.

  • Hi Marquet! Once I was looking for that... couldn't find anything. It would be an excellent upgrade!

    Now I have to use many rectangles to fake a curve. =(

  • Ok Colludium ! Thanks for the help! I'll keep looking for a work-around! =)

  • It was first tested with Firefox. Now it worked with Chrome.

    But now I am testing "Share on Tweeter or Facebook". On both web browsers the Image with a pre-defined message appears and the 2 buttons with a screenshot checkbox. But touching / clicking the buttons won't get me anywhere... =(

    Notice.. I have disabled Popup blockers.

  • Well... this time I could add the game and generate the API key.

    But while trying to post a message at player's facebook wall I am getting the following error:

    Javascript error!

    TypeError: Clay.Facebook is undefined

    http://localhost:50002/Clay_plugin.js, line 891 (col undefined)

    This is either a bug in Construct 2 or a problem in a third party plugin or behavior - please report it to the developer!

  • Hi! Please, just focus on the Crosswalk comment. I'm trying CocoonJS now. I will post it later my feeling on this.

  • Simplest doesn't exactly ....

    Hi! I tried iOS Ejecta and it was straight forward. Then I went for Android Crosswalk and Intel XDK. It was sooo confusing.. in the end it asks if the system is based on Intel or ARM processor to generate the APK. Tried both that ended up in a blank screen.

    Isn't there any Java project like Ejecta to just replace the HTML5? I mean.. a native Java project using Android SDK (ADT)?

    Thanks!

  • You could try making them physics immovable on touch end. Might work... (Using phone so I can't test).

    Hi Colludium, thanks for your contribution.

    I just what you said. First I tried just making them immovable and it really happens. Then I also added an action to make them movable again on every tick. This solution avoids the slingshot effet. But the objects keep overlapping each other =(

    I have attached an image of the EventSheet and final state.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I think this is what your experiencing..

    It's due to the nature of the physics behaviour. Solids cant occupy the same space so will always attempt to "push out" when they are forced to overlap. I dont see any way around this other than avoiding using physics.

    Spongehammer, I tried to open the capx but I need the "TouchMouse" plugin by Rex Rainbow. I have looked everywhere .. the forum, google and I couln't find it. Could you upload it here?

    Thanks!