Jump to content


Photo

HTML5 doesn't show backgrounds


  • Please log in to reply
5 replies to this topic

#1 CharlieMcShane

CharlieMcShane

    GMC Member

  • GMC Member
  • 221 posts
  • Version:GM:Studio

Posted 22 April 2012 - 11:15 PM

Hey Guys!

So it has come to my attention that an update to GM: HTML5 has broken one of our features in our engine.
We have around 4 layers of backgrounds in each level, 3 of the backgrounds move horizontally determining the speed of the player. Here is the code I created for this:
//---Different Scrolling In Background Speeds (Parallax Effect)---//
background_x[1] = -0.05*view_xview[0]   //The first background moves at a quarter of the view's speed
background_x[2] = -0.1*view_xview[0]    //The second background moves six tenths of the view's speed
background_x[3] = -0.2*view_xview[0]    //The third background moves as fast as the character
background_x[4] = -0.3*view_xview[0]    //The forth background moves as fast as the character

Now, somehow, whichever background is under the effect of this code, disappears in the HTML5 version, backgrounds that are not under the effect, are not effected by this bug. This used to work fine until a recent GM: HTML5 update.
Tried contacting YoYoGames about this, but apparently this problem might have been fixed in the GM: Studio version, because it seems GM: HTML5 is not being update for awhile now, and this bug is stopping us from actually releasing a new beta release...


Please help!
Charlie
  • 0

#2 CharlieMcShane

CharlieMcShane

    GMC Member

  • GMC Member
  • 221 posts
  • Version:GM:Studio

Posted 25 April 2012 - 07:38 PM

Any ideas guys? It has been over 24 hours. :(

I found out that GM: Studio suffers from this problem also, so both GM:HTML5 and GM: Studio suffer the same.

Thanks again!
Charlie
  • 0

#3 rwkay

rwkay

    YoYo Games CTO

  • YoYo Games Staff
  • 1441 posts
  • Version:Unknown

Posted 25 April 2012 - 07:45 PM

File a bug and attach an example project as a GMZ and we will take a look.

Russell
  • 0

#4 daz

daz

    GMC Member

  • GMC Member
  • 798 posts
  • Version:GM:Studio

Posted 25 April 2012 - 07:54 PM

Hey Russel, I had an issue once where setting a random variable caused draw_background to stop working, as well as other weird issues with script variables leaking into local scope. Should I try sending you guys a bug report? The project will be something like 7 megs and I cannot recreate it in a simple setting. Whatever this one or two bugs arise from some chain of events that I cannot determine.
  • 0

#5 rwkay

rwkay

    YoYo Games CTO

  • YoYo Games Staff
  • 1441 posts
  • Version:Unknown

Posted 25 April 2012 - 09:02 PM

If you find a bug it is always worth filing the issue and we will do our best to fix it...

If you have a large file then put it in a public Dropbox location and add the link to the bug.

Russell
  • 0

#6 CharlieMcShane

CharlieMcShane

    GMC Member

  • GMC Member
  • 221 posts
  • Version:GM:Studio

Posted 27 April 2012 - 12:38 PM

Apparently the bug has been fixed, as I posted it in the bug list for GM: Studio. But I don't know if the bug has been fixed for GM: HTML5. We are sticking with GM: HTML5 for the time being because we can export projects. Any idea if the fix will come to GM: HTML5?
  • 0




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users