C
Codoral
Guest
Hi all
My game seems to not working very on HTML5 platform. For example, i have a grenade launcher object with movement code in step event and a firing system as following:
An alarm(0) with only a comment so it can countdown.
A global left mouse pressed event with the code
if alarm_get(0)=-1
alarm_set(0,8)
And i put this line of code in the step event of the object i mentioned above
if alarm_get(0)>6
instance_create(x,y,obj_bullet)
What i intend to do here is to create a short delay so my grenade launcher can't fire continuously, that would make it overpowered . The game works fine on PC but when i test it on HTML5 i get numerous of glitches such as:
instance_create(x,y,obj_bullet)
then it works flawlessly on both PC and HTML5
I've test on IE, Chrome(gives the worst result, consume a HUGE amount of memory, can't even move), Firefox, upload it on GameJolt but nothing seems to work.
Did i do something wrong or is my HTML5 module broken?
My game seems to not working very on HTML5 platform. For example, i have a grenade launcher object with movement code in step event and a firing system as following:
An alarm(0) with only a comment so it can countdown.
A global left mouse pressed event with the code
if alarm_get(0)=-1
alarm_set(0,8)
And i put this line of code in the step event of the object i mentioned above
if alarm_get(0)>6
instance_create(x,y,obj_bullet)
What i intend to do here is to create a short delay so my grenade launcher can't fire continuously, that would make it overpowered . The game works fine on PC but when i test it on HTML5 i get numerous of glitches such as:
- Completely freeze whenever i hold and/or press left mouse, no bullet spawn at all.
- Blank screen.
- Animation glitching.
instance_create(x,y,obj_bullet)
then it works flawlessly on both PC and HTML5
I've test on IE, Chrome(gives the worst result, consume a HUGE amount of memory, can't even move), Firefox, upload it on GameJolt but nothing seems to work.
Did i do something wrong or is my HTML5 module broken?