• 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!

SOLVED HTML5 (camera_get_view_x) returns 0.

Megamini009

Member
Hey, I was just trying out a parralax background using lerp, which worked pretty well in the regular desktop test mode.

So i tried it in HTML5 and it didnt move at all.. after checking the variables, I found that camera_get_view_x was returning "0" at all times in HTML5... strange.

I used a quick fix so it works for me now, but i was curious if anyone had this issue also?

- Mega
 

Megamini009

Member
Figured it out, was an error on my part. HTML5 seems to be less forgiving with errors in code! Was driving me mad ! But all is well now.
 
Top