Giganten's Forum Posts

  • rogerwang

    Forgot the mac part in the first test.

    Some more testing

    Mac OS X 10.7

    C2 node-webkit export - Haven't seen any freezing yet

    node-webkit "original" - Haven't seen any freezing yet

    Mac OS X 10.7 - Fusion (Win7)

    C2 node-webkit export - Frequent freezing

    node-webkit "original" - Random freezing

    Win 8

    C2 node-webkit export - Frequent freezing

    node-webkit "original" - Random freezing

  • Don't have very much experience with node-webkit yet and hadn't experienced the freeze bug before.

    But I did a test with a sprite and sine behavior, like megatronx mentioned. C2 node-webkit export is freezing very frequently. Get some freezing in "orginal" node-webkit version, didn't have chrome 35 installed but tried in 36 and haven't observed any freezing yet.

    you can get files here

    https://www.dropbox.com/sh/iyia6jc30cv39pi/AAB1N5sF3jxMntWKDg_0SEm8a/test

    Link to html file

    https://dl.dropboxusercontent.com/u/4320350/test/html/index.html

    Hope it's to some help

  • Nice rex

  • From manual:

    [quote:1hqrupal]Is sleeping

    True if the object has been at rest and not moved or been disturbed for a while, so that the physics engine can stop processing it. Note objects can still be moving imperceptibly which can prevent them from being asleep even when they appear to be stopped.

    Is a physics object with Immovable set to yes, always "awake" and taking up resources or is immovable equal to sleep. When I check in the debugger sleep is always set to false on my immovable objects.

  • bump?

  • Something weird just happened.

    I opened my C2 project and everything I had done yesterday (14 aug) was gone, so i checked the date of the file and it had revert to the 13 aug.

    However, not everything was lost. In the same folder I had autosaves from the 14 aug, strange but glad that part worked. Also had a backup from the 14 in another folder.

    Is it a C2 (R173) bug, or something to do that I sync same folder with dropbox?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Which way provides the best performance or the "correct" way to do it, or are the identically.

    Could not see any drastic difference in performance in the debugger.

    Thanks

  • An physics object with immovable set to yes can't have sleep value of true?

  • try

    Object1 - enable/disable collision Object2 set to disable

    If I remember correctly Box2D asm.js doesn't support this.

  • Agreed it's better using the physics because it does a lot for you, but it never hurts to lean something new...

    I agree with the physics part.

    but I was interested to learn how it works, and if you could apply it to the platform behavior somehow

    Thanks for the formula, really interesting.

    I did setup the machine (in the picture above) with physics. I have two disk setup with revolute joint one for wheel and one with revolute joint to the box above. When the box is tilted like this \ the machine moves forward but when it is tilted like this / it's slowing down. Is this behavior to be expected, and how can I get it to keep the same speed even if it is tilted like / that.

  • Encountered same problem with OS X export, could not launch the file.

    I looked inside the content folder inside the .app file and compared it to a working node-webkit .app file.

    All files listed as unix executable file in the working example was shown as document files in the non working export.

    But got it to work on the mac side by zipping the game.app file before I synced with Dropbox. So in my case dropbox sync looks to be causing the problem if you do not zip the file is first

  • I wonder if this (see picture) would work without using physics behavior (revolute joint).

    But I do not know how to calculate the angular velocity/speed of the object if it is hit by a projectile or hits a static platform.

    Thanks

  • Make a new layer for your hud elements and set parallax to 0,0

    https://www.scirra.com/manual/85/layers

  • Or if you just want to place another text object below your first object

    Try this:

    TextObject2: Set Position to

    X: Text.X

    Y: Text.Y + Text.TextHeight + "Your line height value"

  • Try this

    RegexMatchCount(TextBox.Text,newline,"g")