• Hey Guest! Ever feel like entering a Game Jam, but the time limit is always too much pressure? We get it... You lead a hectic life and dedicating 3 whole days to make a game just doesn't work for you! So, why not enter the GMC SLOW JAM? Take your time! Kick back and make your game over 4 months! Interested? Then just click here!

HTML5 Camera shake issue in HTML5 (but works for Mac/PC)

O

oliverr

Guest
Hi,

Does anyone have any idea why this works fine when exported to Mac/Windows but not HTML5?

view_xport[0] = random_range(-10,10);
view_yport[0] = random_range(-10,10);

Thanks for your help!

Oliver
 
O

oliverr

Guest
Thanks for the quick answer FrostyCat, unfortunately it didn't make a difference. So strange, desktop is perfect, HTML5 just does nothing.
 
O

oliverr

Guest
Actually it seems that view_xport[0] /view_yport[0] can't be set for HTML5, but desktop works fine. For example view_xport[0] += 10 does nothing in HTML5 but works as expected for desktop.

Anyone have any ideas why or alternative suggestions?
 

Roa

Member
views and almost all functions pertaining to them have been broken for some time in html5, you will have to settle for using surfaces.
 
Last edited:
O

oliverr

Guest
Ah okay, thanks Roa! Yes, have found a few differences since purchasing/testing the HTML5 module.
 
Top