MarkPal

Members
  • Content Count

    22
  • Joined

  • Last visited

About MarkPal

  • Rank
    Member

Contact Methods

  • Website URL
    http://palmunderpalm.com
  • Twitter
    mtpalmu

Profile Information

  • Gender
    Male
  • Location
    Finland

Recent Profile Visitors

547 profile views
  1. Hi all, I just went through of putting all the single image files of my game into texture atlases. This made my game load and run faster, which was a good thing. I, however, noticed that implementing texture atlases gave me worse results when monitoring my game's memory usage with Google's Timeline tool. Before this the memory usage of my game was quite steady but now it goes up and up every time I switch from Main Menu -state to Game-state and back repeatedly. It never comes back down like it used to. Is there any differences in the way memory/cache works if I create sprites from single image files or atlases? Currently I'm destroying everything using shutdown but it seems that these sprites created from atlases doesn't get fully destroyed. To destroy a sprite I'm doing this.sprite.destroy(); If someone could help me with this, I'd really appreciate it. I was just making final optimizations for my game and now this is causing me some unwanted memory leaks.
  2. I have this same issue, sort of. I get all the files loaded successfully but when I try to play them the game freezes. I tested this multiple times and I noticed that if I have many sounds playing simultaneously the game freezes. If I only have background music and one sound, let's say, everything works pretty fine. Therefore it seems that in Mobile IE you can't play many audio files at the same time. Do you get any error messages when your game gets stuck? You can see it right from your phone by using this: http://markknol.github.io/console-log-viewer/
  3. Hello all, I've noticed that If I make a game with a Phaser version 2.2 or above my Nokia Lumia 920 can't show any of its graphics. It's using Mobile IE as a browser and this problem never occurs with a desktop version of IE. For example I once went through this SpaceHipster tutorial, which worked pretty well with Phaser versions under 2.2. Then, at that time, I made it run Phaser 2.2 and suddenly my Lumia phone was showing only black screen with background music playing. This same thing is happening to me now in my client project, in which Lumia only shows the background image of my HTML file. In this project I'm using Phaser 2.2.2. I also tried Phaser 2.3 but it was the same. Any ideas what could be causing this?
  4. I'm wondering if I could do this somehow by adding a function to Loader's onFileError event. The difficult part of that is all different file types, I guess. At least if I make it to load something again by using basic commands (this.load.audio... this.load.spritesheet...)
  5. Okay, I tried this but I still seem to get this error randomly. It's always a different file that doesn't load and gives a Phaser error message. Any other ideas?
  6. So if I do it like icp suggested, will it also make sure that all the loadings inside my Preload state get assuredly done? I mean that even though it makes sure that all scripts etc. have been loaded, I'm still making the game load more files when Boot-state has completed and switched to Preload state. window.onload = function() {var game = new Phaser.Game(640, 960, Phaser.AUTO, 'game');game.state.add('Boot', Candy.Boot);game.state.add('Preloader', Candy.Preloader);game.state.add('MainMenu', Candy.MainMenu);game.state.add('Game', Candy.Game);game.state.start('Boot');};Preload state starts inside window.onload after Boot.
  7. No, it's not. In my index.html file I load all script files inside <head> tag and then inside <body> tag I load main.js, which is the main game file. Would this window.onload help in this preload issue of mine? How?
  8. Hello all, I don't actually know if this is a Phaser issue or if this is a server related problem. So, sometimes when I start my game and go through the Preload-state, I get this log message in browser's console which says that one of the assets wasn't loaded. It's a Phaser message and it goes like Phaser.Loader error loading file... When this happens the file is always different. Sometimes it's an audio file, sometimes a single image file or sometimes a spritesheet. It's completely random. Now I'm wondering if there is any efficient way to ensure that every file has been loaded before switching state. Do I have to check the game's cache with every key or is there any better way? I'm using Phaser 2.2.2 and in the Preload state I'm loading quite a load of files: 10 audio music files22 audio fx files41 single image files24 spritesheets2 atlas filesThis has happened on both PC and mobile. It would be great that the game wouldn't skip a file in any case because that eventually leads into a crash.
  9. Okay, that's interesting. I, however, just checked my audio files and they are all 44100Hz. I'll pass this information to my audio guy and let's see what he thinks.
  10. I had this same problem and ended up to create a keyboard of my own. It looks like this: POISTA = Remove character VĂ„LI = Space By doing this it's very easy to input names and anything on any screen. In addition to that using keyboard is also allowed on PC. By making your own keyboard like this you can also make it look the same as your game.
  11. I tested this audio thing a few times more and for me it seems to happen only in my game's version which runs in Phaser 2.2.2. This hasn't happened yet with Phaser 2.1.2. So I'm wondering if there are any differences in the way SoundManager works between these versions that could be causing it? I would much like to share a link to my game but unfortunately my clients wouldn't like if I share it here in public.
  12. When my iPad Mini 1 crashes it only says something like "A problem occured with this webpage so it was reloaded." It doesn't go back to home screen but I guess this is the same case? At least when my iPad 2 crashed when I had memory leaks it did the same thing. It's just strange that with iPad Mini 1 it sometimes happens during preload and sometimes it lets me play a couple of levels before it happens. Gotta try putting all my graphics into texture atlases next, then. Maybe it will help. Thanks for the tips! Luckily this audio issue happens quite rarely.
  13. Also iPad Mini 1 has the same amount of RAM as iPad 2, which runs the game with no problems at all, using the same iOS version and browser.
  14. Yes, I've used Google's Dev tools to monitor my game's memory usage. In fact I previously had some memory leaks because in my game I load dozens of images in every new level and I wasn't removing them from cache before. Now the memory usage stays steady, but I still have to say that my game is quite heavy. By this I mean that I have tens of different graphic files (in addition to level-specific images), some of them are quite big, and I also have tens of sound files. I'm not using texture atlases yet so maybe they could make an improvement? Even though my game would take a huge place from memory I'm still wondering why it makes the audio play at half speed. It plays like in 50% tempo. This didn't ever happen in Phaser 2.1.2.
  15. I'd like to add that it's not happening only on this particular iPad Mini 1. I have two of them and it happens on both devices. The game is also running on WebGL. I've tried using canvas but it kicks the frames-per-second from 30-40 down to about 10. Sometimes iPad Mini 1 also crashes either in preload or in the beginning of some random state. It's difficult to track down because the crash always occurs in a different time. I've also noticed that sometimes it doesn't load a random file during preload (Phaser.Loader error loading file *) which makes the game crash eventually. So many crashes, and all these are happening only using iPad Mini 1. Sadly, my game is going to be played at schools and all the students there are using iPad Mini 1s.