Headbang Games's Recent Forum Activity

  • zenox98 Thanks for testing and i am glad you liked it!

    Ashely I tried it in firefox, same jitters, on IE it doesn't load at all, but i don't really mind.

    What really baffles me is that it doesn't happens when i preview the project, in preview it runs smoothly, is there any difference in rendering between preview and export?

  • I tested it on two machines, I didn't try ie or Firefox since nodewebkit is chrome based but ull try when I'll be next to a computer.

    How does the node version runs on your machine?

  • Ashley It happens in both, just more severe in nodewebkit which is the platform I want the final product to run on.

    I am not home now and I didn't upload the 181 version, but here's the 180 one which works the same:

    https://googledrive.com/host/0B3JLq-yXZ ... /lofPC.zip

  • Ashley I update the link with an export from 181r, it still happens (it's more severe in node-webkit, on 180 as well).

  • No i didn't see there was a 181 version, downloading it now!

    GREAT feature addon - global layer, brilliant!

  • I have a strange problem with jittering while scrolling, the strangest thing is that this does not happens when previewing the project from the capx, only after exporting to html5 or node-webkit.

    I am printing the fps to the browser log, when i walk to the edge of the screen the scene scrolls, when previewing fps remains on a steady 60, after export there are some small drops but nothing below 55, i don't know why, but still it's high enough, it shouldn't jitter.

    The other strange thing is after i scroll a few times back and forth, it stops jitter and remains on a steady 60 fps.

    Has anyone encountered this problem or have any suggestion on how to fix this?

    Here is an online link of the game, press skip (to skip tutorial, then walk around in the house).

    https://ea14537672eb44ada25c6048dea91f1 ... Z0M05MN0k/

    oh and my scrolling event is:

    scroll to

    lerp(scrollx, scrollToX, 1*dt)

    lerp(scrolly, actor_joe.Y, 1*dt)

    scrollToX is var i change when i need to push the camera around.

    In this case when the actor is at a certain distance from the edge of the viewport.

  • I overcomed a similar issue (with swiping inside an iframe)

    by adding a css rule

    position:fixed;

  • as i said before, have a var named level

    and check in the tag

    if music&level is not playing

    stop all

    play "music"&level with tag "music"&level

    than if you die and restart the same level the event will not be called.

    and if the level changes the music will stop and play the new music with a new tag

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • No you didn't understand what i meant,

    click on the audio is playing condition than click on "i" on the keyboard, this will reverse the event to checking false condition.

    delete the stop action

    and move the play action to the sub event

    now only if music is not playing the action will be called.

  • you can add tags to the audio and check if it's play or not

    on start of layout

    if tag "musicLevel" not playing

    play audio with tag "musicLevel"

    you can add a var to it for the levels

    tag "musicLevel"&level

  • Now that i think of it, you will still need a var for triggering the movement, unless you hold your click/touch.

    Or grouping may also work

  • If that's the case and it's a one time movement to a predefined point B, than yes.

Headbang Games's avatar

Headbang Games

Member since 5 Dec, 2012

Twitter
Headbang Games has 1 followers

Connect with Headbang Games

Trophy Case

  • 12-Year Club
  • Jupiter Mission Supports Gordon's mission to Jupiter
  • Forum Contributor Made 100 posts in the forums
  • Forum Patron Made 500 posts in the forums
  • Popular Game One of your games has over 1,000 players
  • Coach One of your tutorials has over 1,000 readers
  • Regular Visitor Visited Construct.net 7 days in a row
  • Steady Visitor Visited Construct.net 30 days in a row
  • RTFM Read the fabulous manual
  • Email Verified

Progress

21/44
How to earn trophies