Ambiera ForumDiscussions, Help and Support. |
|
|
|||||
|
My game (that was intended to be for Android) works terribly... If it isn't on PC. Yeah, so, for some reason there is a lot of weirdness with it: some 2D overlays that supposed to be transpaerent are not, player isn't being kicked by recoil and some other issues. While the first one isn't that necessary, the second problem is bad, since the recoil of weapon is the way of movement. So, here's examples: On phone On PC What could be the reason for this? Also, if you want to test both of them to see the problems better, here is the prototype (both PC game and Android piece of ****): https://disk.yandex.ru/d/X-EaUAr... |
||||
|
switch case statements don't work on android, must use if else / else if textures must be square you set overlay transparency as a color or as an image, image is required !!! maybe your image is not so terribly transparent after all ?? the background color has a transparency setting in the range of 0 .. 255 there are differences in JS statements on all platforms. its a pity but its up to us the user to find out what those differences are the help files occasionally tell something does not work on webGL or so, but it never presents us with all the differences in a table or so, that would be very helpfull but it still in not there. |
||||
|
Oh... Now I understood. All the buttons has a 2D overlay transparency (not from image), but the controls are using the transparent images, so, that's why they look normal... Huh... And about If Else and Else If, didn't really understood this moment. But I actually understood one major moment from this - I'll better turn this into PC game rather than dealing with that many problems and stuff. Anyway, I'm glad that you helped me understood what the hell is wrong with this. Thank you. |
||||
|
great, There are a couple of succesfull android game files out there, you could try them to see how their game logic is coded. like some of JustInCase android apps, areibmas game and others. switch(item) case item =1 do ... case item = 2 do ... etc. becomes: if ( item =1) { do ... } else if (item = 2) { do ... } etc. your assets must be licht weight keep polygon count as low as possible and meshes must be really neat no holes and doubles hidden geometry and such is just dead weight for mobile cpu and your textures must look good of course but also be small as possible. but then you can show off your creation everywhere... |
|