you sure ?
i have a game on appstore wich use the restart action and that work perfect
can we see how you do the event ?
hi,
i want to enable collisions of ennemy only if hes near my player
i use compare X of ennemy when it is >= 100 (100 is position of my player) then enable collisions
but i think that it will enable it every tick ... so i need to enable it just one time
thanks
IF YOU USE canvas2d engine ... its more efficient on cpu render ... try it by your self
if you use webgl ... welcome layer its better for optimisation
avoid the every tick ... try to set text only when it is necessaire
enable / desable collisions only when it is necessaire
reduce collisions polygone
in your place , and specially if you use canvas 2d .... don't use layer at all .... use only one
post a .capx to see what go wrong !!!
by my experience if you have more than 50 objects (sprites) the game will go runing slow but in your case its 40 objects (and they are small sized as you say) so post .capx maybe i can optimize it for you
remember to
thats all wgat i can recommand to you but better is to see the .capx to see what go wrong
at this same iam searching about this
i think not possible but we have to ask ashely or tom or other person
it will be great if ashley or other person find the way to load every thing (sound and object) of next layout on a condition of the previous layout (for example when touch ok boutton of 1st layout >>> load all object / sprite / sound) of the next layout) ... specially for ejecta or other ...
Develop games in your browser. Powerful, performant & highly capable.
usefull for mobile
can i for example check device in order to enable or desable webgl ?
for exemple ... detect if its iphone 4 then disable webgl else activate it ???
ejecta work perfectly
i guess you have problem on start of your first layout
or you have problem with windowd size and scaling
at least maybe desable minifying
iphone 4 ... because its the cheapest ... and every one can buy it ... specially young person
i'm developping in mobile ...
Member since 2 Mar, 2014