Jump to content

old_blueyes

Members
  • Content Count

    13
  • Joined

  • Last visited

  1. Hi, I am trying to sort an array on a sprites x position, and display when they pass a checkpoint. Whilst it largely works: There are occasions, it will go out of sync: Can someone with a fresh pair of eyes, please look over it, i'm going round in circles: var checkPointGroup; var checkPointChild; var checkPoint; var carGroup; var car; var carQty = 2; var text; var posText1; var posText2; var obstaclesGroup; var obstaclesCollider; var obstaclesCount = 0; var obstaclesQty = 8; var obstacles; var startLine; var goTime = false; var carJump = false; c
  2. Hi, I'm after some advice, i'm trying to figure out the most efficient way of emulating the behaviour of the commentary bar within Football Manager series. In essence a notification bar, which shows up intermittently and displays text highlights: Now, i've already done a little groundwork and have a renderBox() function that when called, will display bar and message, then disappear. I'm wondering though what is the most efficient way of the achieving random intermitten display behaviour? Would anybody recommend a setTimeout approach, I have also wondered abou
  3. Thanks, just tried it and it worked 😊 Strangely though, i'm sure I tried this last night and it didn't work. 🙄
  4. Hi, Having problems using .destroy() to remove a group. Am i using it wrong? Is there an alternative I should use? I've tried .kill() and .remove() and they don't work either, my code is below. Destroy is at the very bottom in the hideCommentaryBox() function. preload() { } create() { this.timedEvent = this.time.addEvent({ delay: 1500, callback: this.singleLineCommentary, callbackScope: this}); } update() { } singleLineCommentary() { this.showCommentary
  5. many thanks both, hugely appreciated... also some good advice
  6. Sorry to bump the post, but could anyone please help?
  7. Hi, Hope somebody can help, I have a sprite which i've coded to animate on overlap. But it's acting very strangely, currently when the sprite overlaps it will trigger the first frame of the animation. Which stays as a still frame, until the sprite finishes the overlap of which then the rest of the animation plays out. It's like there's a delay on the animation somewhere, can't figure out where. If there is, it would be strange as it switches to the first frame of the animation. But it should be one continuous motion. Appreciate it if anyone can take a look: https:
  8. Hi All, Making a racing game, very much a work in progress. I am struggling however, with the in-race action. I am trying to use random velocity on the individual runners, for them to move up and down the field. Whilst it works from time-to-time, a lot of the time though the runners get stuck together and move up and down as one group, which is not what I want. I am hoping for the in race action to be more organic, less bunched together. https://codepen.io/old_blueyes/project/editor/DQyeLQ#0 Does anyone have any suggestions?? Thanks
  9. Hi, I am making a landscape game, just curious about dimensions. I understand, there maybe dependencies on image sizes etc, but are there a set of default dimensions to aim for?? What does everyone else use? Thanks
  10. Hi, Is it possible to run 2 separate timelines one after another? i.e. using the onComplete parameter on the first timeline to fire a function which contains the second timeline. using something similar to this: var timeline = this.tweens.timeline({ tweens: [{ targets: targs, x: startPos, duration: startDur, ease: 'Sine.easeInOut', delay: delay }, { targets: targs, x: jostlePos
  11. Anyone? Please am willing to make a donation for your efforts.
  12. Hi, I hope that I find you well, I am a little stuck. I have a group of sprites, that on overlap of another jump sprite image, I require it to play the jump animation, but only on the individual sprite within the group, when it has overlapped. My code, is pretty much working how I want apart from this issue, in the current build, on overlap the animation will play for all sprites within the group (not an individual basis), and will trigger again (beyond the original, overlap) if another sprite hits the jump image. Appreciate any assistance. var game; var globalParams =
×
×
  • Create New...