Jump to content


  • Content Count

  • Joined

  • Last visited

About ritherz

  • Rank

Recent Profile Visitors

963 profile views
  1. This is like the first thing that comes up on google for how to change pitch. The last comment doesn't quite do it. After some playing around, I found that I actually had to play the sound before altering it immediately after: this.mySound.play(); this.mySound._sound.playbackRate.value = 1.2; This worked for me Like this
  2. You're right, I have now gotten it to a point of just being able to save the file (.scml), and my updates take effect. I had to change that one line here: https://github.com/SBCGames/Spriter-Player-for-Phaser/blob/master/Build/spriter.js#L1368 to: info.pivotY = 1- this.parseFloat(keyDataElm, "pivot_y", file.anchorY); You may have fixed it now, as I see you've made some changes since the version I tried on. I'm glad you added signals, no point in me doing a writeup, great job!
  3. Yipes! I actually dealt with this issue a few times today as I was porting more skels into my game hehe. Im fairly sure it was due to the name of the body parts in the sprite atlas. If you used shoebox like me, it names the individual sprites "bodypart.png" in the sprite atlas. Try removing the extensions (.png usually) within the atlas (json dict). Also remember to refresh your cache before coming back I will definately be doing a tutorial on it, im just wanting to get my code to the point where im comfortable telling others how to do it. Hopefully i'll have time tomorrow, but
  4. I have finally managed to replace The Hero example stuff with my own sprite!! I had to rename the entity in the xml I generated, and actually create a sprite atlas for the images I am using (thanks ShoeBox). I totally see what you mean by the export coordinates/axis issues. But, I finally figured it out! You basically have to set pivot_y to 1 - pivot_y for all object tags. Then the animation works well, and is not distorted like my previous attempts were. <timeline id="2" name="Right Arm"> <key id="0" spin="0"> <object
  5. Thanks so much man! I seriously can't wait to try it. I bought a bunch of art assets with pre-built sprite animation sheets- but it also contains the separate parts. Im getting tired of the same shitty animations with my inability to "art". I want to be able to sell vanity equipment in my game, learning to do this is essential!
  6. This is sweet... I wish I could figure out how to use it. When I look at the tool you created, I feel lost since there's not many instructions on how to use it, and I've never used typescript.
  7. I've noticed my game is terribly slow on older devices, next to unplayable. It's a turn-based game, so skipping frames isn't much of an issue, however I hesitate upgrading to 2.4 due to the jittery animation problem. Do you have any further insight as to the timer changes?
  8. Hi guys! I'm testing my game on an iphone 4, and a low-end android I bought a year ago. So the FPS mentioned below is refering to these devices. I have a spritesheet (2 spritesheets, about 1500px X 1500px ) for 2 different characters, each frame is around 100x150px. When I don't animate the characters, I get decent FPS (30-40fps). When I animate them, it drops to 10 on iphone 4, and around 20-30 on the android. They are both loaded via json texture atlas, which, by experimentation, yielded slightly higher fps than XML texture atlas or putting them both in the same spritesheet: game.l
  9. You're right, I want to load game state assets in the background while the player is in the menu state. If the player manages to start a game before all assets are loaded in the background it would load up the rest of the assets in another loading screen. Yeah, I'd have to play with it a lot myself to figure out if this would work, and I'll probably try some of your ideas if no one else responds- thank you. I was wondering if this was a solved problem maybe there's a simple set of game.loadspriteinbackground(), game.loadspriteifnotalreadyloaded() functions or something.
  10. If I have a menu screen game state (where presumably users would probably spend a few seconds navigating to what they want to do), can I load the assets for the actual game while having the menu screen already displayed and working? So it would look something like this: Preload menu state assets. Display menu state. While in the menu state (allowing navigation still), the browser fetches the assets for the next state ("playing the game" state). Player clicks "play". Load the rest of the game state assets that haven't been loaded in step (3) Change to game state. Maybe this isn't even poss
  11. I'm sorry if this has already been answered before, I didn't see a topic. I'm making a match 3 game similar to the one in the phaser2 examples. When a player matches 3 gems, I have them bounce off the board. So for a 6x6 tile board I move/bounce each of the collected gems to one of 5 places on the screen. However when I was running some diagnostics on this, I have 3 different tweens going at the same time (scale, x linear, and y Phaser.Easing.Sinusoidal ), and it takes up to a few tenths of a second to create all these tweens and then start them. So it's somewhat slow. I'm fairly sure
  12. Thank you. I'll test my game after creating all the sprites first, that might be key.
  • Create New...