QLNEO

Members
  • Content Count

    63
  • Joined

  • Last visited

About QLNEO

  • Rank
    Advanced Member

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. QLNEO

    Use physics time in Timer?

    It appears using a tween (applied to nothing) and its onComplete signal does the trick. I had to manually set game.tween.frameBased = true, however.
  2. QLNEO

    Use physics time in Timer?

    According to the docs, However, I'm using a countdown-based event, where I'd normally use a Timer, that needs to be applying physics time. How should I approach this?
  3. I found the solution. It's silly, but it solves it. I needed to set collision between the moving platform and the tiles, even if they don't directly collide. The catch is, that must be set before collision between object and tiles
  4. I have a level where my character needs to dodge obstacles while riding a moving platform. However, it seems to ignore any other collision when atop the platform (unless the character itself is moving as well). Any ideas on why, or how to fix? EDIT: Forgot to say that I'm using Arcade Physics! <-- That "ball" behind the guy is a collidable level tile
  5. QLNEO

    Sound muteOnPause problem

    Wow, I just posted a similar thread before seeing this one existed. I almost feel bad. By any chance, does it mute when the game window is unfocused or only when it's triggered ingame?
  6. Title. After I set game.sound.muteOnPause to false, it doesn't mute anymore when the game is unfocused, as expected, but when I manually set game.paused to true via a in-game event, the music still mutes, and even dispatches onMute signal. Is this a bug or I messed up? EDIT: Oh, and I'm using 2.9.1.
  7. QLNEO

    Sound element duration is 0

    This is a very old thread, but since it popped up on search (I'm having the same problem as OP but I'm pretty sure my sound is decoded <EDIT: That was solved as well >) I want to add that Sound.onDecoded sends a signal that you can use when you want to wait for a sound to be decoded. Not sure if that was available on the time this thread was made, but for anyone searching, this is a thing.
  8. Please take a look at the two following pieces of code: // Form 1 paddle.events.onDragStart.addOnce(ball.setMovement, ball); // Form 2 paddle.events.onDragStart.addOnce(function() { this.setMovement(); }, ball); Technically these two should be the same. But, for some reason, the first variant isn't quite working according to the plan. In fact, ball is being sent as an argument to .setMovement() instead of being the context, as the docs make me think it should be. The second form works as expected, ball being treated as this. Is this a bug, an example of badly explained documentation or I'm missing something obvious?
  9. QLNEO

    Database?

    You don't need to know databases to make games. You might want that if you're doing an online thing, though. I can't answer about the ads, but many games and some portals use ingame ads, so it's possible. Ad-supported games are one way to monetize your software, albeit licensing to portals seem to be the most effective in the short term.
  10. QLNEO

    TypeError: this.game.add is not a function

    game.add is indeed not a function. It's a reference to GameObjectFactory, which itself has methods like .sprite(), .group() and, as gauravD mentioned, .existing(), which is great when you have to add a generic GameObject.
  11. QLNEO

    Tween duration precision?

    It's likely. From my testing (as I said, the duration, or at least the looping, seems to be incremental), it appears that the tween loops starting with a frame update. I ended up using the Timer instead, that did the trick.
  12. Is there a way to make the game detect you're moving a pointer in a circular fashion? My idea would be to calculate velocity of a projection on a line perpendicular to the supposed centerpoint of the circle, but that sounds it could get a little inaccurate.
  13. QLNEO

    Tween duration precision?

    I'm trying to sync a looping tween to a beat, by calculating the tween duration (therefore, the interval) from the BPM. But it's always off-sync! I investigated a bit by subtracting small values to see if I reach some kind of "fake sync", but it turns out the tween seems to be incremental (maybe with the frame updates?), and that won't do. Should I try using the Timer instead or there's a better way?
  14. QLNEO

    Can't collide sprite and tilemap

    Well the Discord server saved my butt turns out there was something you did there that I forgot to do. Namely, put the .collide() on the update function. Problem solved, and I have to seriously write that up somewhere so I never ever forget that again. Thanks for the assistence though!
  15. QLNEO

    Can't collide sprite and tilemap

    How so? But nevertheless, I define my player after the collision layer, which is exactly what you did. My game currently has only that layer (and an object layer, that isn't created because it's an object layer and just stores data)