Impact

This forum is read only and just serves as an archive. If you have any questions, please post them on github.com/phoboslab/impact

1 decade ago by Skwiddy

My little game (temp hosted on my website) runs fine on my laptop (both safari and firefox). However, if I try and access it via my mobile it just hangs on the loading screen. What could be causing this?

1 decade ago by mimik

Try activating the debug plugin that come with impact.

Read here:
http://impactjs.com/documentation/debug

You can also try to cache all assets beforehand.
One thing i noticed when working with mobile is some bad programmed entites lag the game out.

try removing all does and just love the level first.

1 decade ago by dominic

Probably sound. Mobile browsers still to a terrible job when it comes to <audio>. You can disable sound before calling ig.main():

if( ig.ua.mobile ) {
    // Disable sound for all mobile devices
    ig.Sound.enabled = false;
}

More in the Impac on Mobile Platforms documentation.

1 decade ago by Joncom

Also can be helpful to enable the debug console on your mobile device if it has one.

1 decade ago by Skwiddy

Thanks Dominic, it was the sound that was causing the problem!
Page 1 of 1
« first « previous next › last »