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 harryfeng

http://littleroom.ca/zxc/gotstyle/

the game is not loading in ios 4. but it can load in ios5 and 6.

is there any reason?

1 decade ago by dominic

I don't have iOS4 installed on a device anymore. Do you see an error messages when you enable the error reporting in the settings?

1 decade ago by harryfeng

http://dl.dropbox.com/u/15712368/aa.png

please see my attached image for the error. below is the code from spike.js line 53
	if(this.anims.catch.frame==this.anims.catch.sequence.length-1)
			{
				this.kill();
				ig.game.spawnEntity(EntityPlayer,100,80);	
			}
			this.vel.x=0;
		
		}

but I don't know what cause the second error.

1 decade ago by dominic

The second error (unresolved dependencies) probably stems from the first. The spike.js file can not be parsed properly, so the other source files, dependent on it, can't load it.

I&039;m not sure why you get a parse error in iOS4, but on iOS5; maybe it's the #catch property name? catch is a reserved word in javascript. Try renaming your animation to something else.

If it doesn't work, show the whole source for the spike.js; maybe the problem is somewhere else. In your snippet you posted here, there's an extra closing brace.

1 decade ago by harryfeng

thanks, change catch to other name work.
Page 1 of 1
« first « previous next › last »