Page 1 of 3 123 LastLast
Results 1 to 10 of 22

Thread: Long shot, but does anyone know anything about "Phaser" programming?

  1. #1
    Modding this sack of shit BehindBlueI's's Avatar
    Join Date
    Mar 2015
    Location
    Midwest

    Long shot, but does anyone know anything about "Phaser" programming?

    My son is struggling to get a game working that's part of his computer science class. The teacher hasn't been responsive during distance learning. I know diddly shit about this sort of thing and of no assistance. I know it's a long shot, but if I post the code he's having issues with is there anyone who might be able to advise the issue?
    Sorta around sometimes for some of your shitty mod needs.

  2. #2
    Site Supporter
    Join Date
    Sep 2017
    Location
    South Louisiana
    Just remember to set it on "stun".

  3. #3
    Member
    Join Date
    Mar 2011
    Location
    FL
    Try searching one of the stackexchange.com sites, or perhaps stackoverflow.com.

  4. #4
    Site Supporter
    Join Date
    Aug 2015
    Location
    NE Ohio
    A quick search shows that is a Java script library. I don’t have a lot of experience with js but I can take a look.


    Sent from my iPhone using Tapatalk

  5. #5
    Site Supporter
    Join Date
    Sep 2015
    Location
    Fayetteville, NC
    Post it; I'll send it to my son.
    --Jason--

  6. #6
    Modding this sack of shit BehindBlueI's's Avatar
    Join Date
    Mar 2015
    Location
    Midwest
    Quote Originally Posted by Whirlwind06 View Post
    A quick search shows that is a Java script library. I don’t have a lot of experience with js but I can take a look.


    Sent from my iPhone using Tapatalk
    Quote Originally Posted by Blades View Post
    Post it; I'll send it to my son.
    Thanks.

    Here's the link: https://repl.it/@JohnnySeed/Imaginat...ces#index.html

    and join link: https://repl.it/login?goto=/join/qlmvmckf-johnnyseed

    *edit*

    He thinks line 62 is the problem, but can't figure out what the issue is.

    %c %c %c Phaser CE v2.13.1 | Pixi.js | WebGL | WebAudio %c %c %c http://phaser.io/ %c:hearts:%c:hearts:%c:hearts: background: #fb8cb3 background: #d44a52 color: #ffffff; background: #871905; background: #d44a52 background: #fb8cb3 background: #ffffff color: #ff2424; background: #fff color: #ff2424; background: #fff color: #ff2424; background: #fff
    TypeError: Cannot set property 'volume' of undefined
    at Object.update (/code.js:97:28)
    at e.StateManager.update (/phaser.min.js:3:249725)
    at e.Game.updateLogic (/phaser.min.js:3:292988)
    at e.Game.update (/phaser.min.js:3:292338)
    at e.RequestAnimationFrame.updateRAF (/phaser.min.js:3:512432)
    at window.requestAnimationFrame.forceSetTimeOut._onLo op (/phaser.min.js:3:512308)
    TypeError: Cannot read property 'animations' of undefined
    at Object.create (https://imaginativemintcreamconferen.../code.js:62:13)
    at e.StateManager.loadComplete (https://imaginativemintcreamconferen...in.js:3:249226)
    at e.Loader.finishedLoading (https://imaginativemintcreamconferen...in.js:3:590854)
    at e.Loader.processLoadQueue (https://imaginativemintcreamconferen...in.js:3:590342)
    at e.Loader.asyncComplete (https://imaginativemintcreamconferen...in.js:3:591027)
    at e.Loader.fileComplete (https://imaginativemintcreamconferen...in.js:3:600019)
    at XMLHttpRequest.r.onload (https://imaginativemintcreamconferen...in.js:3:596254)
    Sorta around sometimes for some of your shitty mod needs.

  7. #7
    Revolvers Revolvers 1911s Stephanie B's Avatar
    Join Date
    Mar 2014
    Location
    East 860 by South 413
    Quote Originally Posted by revchuck38 View Post
    Just remember to set it on "stun".
    The settings from Calvin & Hobbes were “obliterate” and “deep fat fry”. In Bloom County, it was “massacre”.
    If we have to march off into the next world, let us walk there on the bodies of our enemies.

  8. #8
    Site Supporter
    Join Date
    Sep 2015
    Location
    Fayetteville, NC
    Quote Originally Posted by BehindBlueI's View Post
    Thanks.

    Here's the link: https://repl.it/@JohnnySeed/Imaginat...ces#index.html

    and join link: https://repl.it/login?goto=/join/qlmvmckf-johnnyseed

    *edit*

    He thinks line 62 is the problem, but can't figure out what the issue is.

    %c %c %c Phaser CE v2.13.1 | Pixi.js | WebGL | WebAudio %c %c %c http://phaser.io/ %c:hearts:%c:hearts:%c:hearts: background: #fb8cb3 background: #d44a52 color: #fff fff ; background: #871905; background: #d44a52 background: #fb8cb3 background: #fff fff color: #ff2424 ; background: #fff color: #ff2424 ; background: #fff color: #ff2424 ; background: #fff
    TypeError: Cannot set property 'volume' of undefined
    at Object.update (/code.js:97:28)
    at e.StateManager.update (/phaser.min.js:3:249725)
    at e.Game.updateLogic (/phaser.min.js:3:292988)
    at e.Game.update (/phaser.min.js:3:292338)
    at e.RequestAnimationFrame.updateRAF (/phaser.min.js:3:512432)
    at window.requestAnimationFrame.forceSetTimeOut._onLo op (/phaser.min.js:3:512308)
    TypeError: Cannot read property 'animations' of undefined
    at Object.create (https://imaginativemintcreamconferen.../code.js:62:13)
    at e.StateManager.loadComplete (https://imaginativemintcreamconferen...in.js:3:249226)
    at e.Loader.finishedLoading (https://imaginativemintcreamconferen...in.js:3:590854)
    at e.Loader.processLoadQueue (https://imaginativemintcreamconferen...in.js:3:590342)
    at e.Loader.asyncComplete (https://imaginativemintcreamconferen...in.js:3:591027)
    at e.Loader.fileComplete (https://imaginativemintcreamconferen...in.js:3:600019)
    at XMLHttpRequest.r.onload (https://imaginativemintcreamconferen...in.js:3:596254)
    This is Blades' son: I found two problems, though I'm not 100% sure how to fix one. First, the var boomSound wasn't declared before it was used, so add var boomSound; to line 12.

    The issue on line 62 is that explosion hasn't been initialized yet. I'm not familiar enough with this game framework to know exactly what it needs, but it should be similar to how asteroid is initialized around line 45. That may or may not require first adding a group like on line 40, depends on how this framework works, but either way, the root issue is the same: you're trying to access the animations property of explosion before anything has been added to the explosion variable.
    --Jason--

  9. #9
    Site Supporter
    Join Date
    Aug 2015
    Location
    NE Ohio

    Long shot, but does anyone know anything about "Phaser" programming?

    It seems to be saying: Cannot set property 'volume' of undefined
    at Object.update (/code.js:97:28)

    which in the source code is :engineSound.volume = .3;

    It could be that this object can't accept ".3" so it's looking for an integer.

    Hope this helps.
    Last edited by Whirlwind06; 10-06-2020 at 08:42 PM.

  10. #10
    Modding this sack of shit BehindBlueI's's Avatar
    Join Date
    Mar 2015
    Location
    Midwest
    Quote Originally Posted by Whirlwind06 View Post
    It seems to be saying: Cannot set property 'volume' of undefined
    at Object.update (/code.js:97:28)

    which in the source code is :engineSound.volume = .3;

    It could be that this object can't accept ".3" so it's looking for an integer.

    Hope this helps.
    No change.
    Sorta around sometimes for some of your shitty mod needs.

User Tag List

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •