ramspeed

Members
  • Content Count

    27
  • Joined

  • Last visited

About ramspeed

  • Rank
    Member

Recent Profile Visitors

1041 profile views
  1. Hi everyone, I'm looking for someone well-versed in Phaser to help me build a component for a game that allows users to upload a photo to use as their avatar. This would need to function for both mobile and desktop and allow people to interactively crop their image. I'm using Firebase so knowledge there is a plus, but not a deal breaker. This is a paid gig. Please let me know if you can help - Thanks!
  2. Hey I dunno if anyone can help me, but I followed along with this tutorial to add CPMStar ads to the start of my game: http://www.emanueleferonato.com/2016/03/10/how-to-publish-your-html5-game-on-facebook-using-facebook-login-share-and-cpmstar-ads/ I signed up for an account with CPMStar and set up my game and they give me this spot id#: 14520QB5D9BE5C which looks to be used with Flash. My game is HTML5... All the examples I can find online use a "pid" which doesn't remotely resemble the code I was given: <script language="Javascript"> var cpmstar_rnd=Math.round(Math.random()*999999); var cpmstar_pid=10016; document.writeln("<SCR"+"IPT language='Javascript' src='//server.cpmstar.com/view.aspx?poolid="+cpmstar_pid+"&script=1&rnd="+cpmstar_rnd+"'></SCR"+"IPT>"); </script> Can anyone offer advice? Thanks
  3. Weird! As soon as I posted this the Sponsors and Portals page reappeared. Maybe it's hiding stuff that isn't new for me.... either way please disregard sorry.
  4. I noticed the sponsors/publishers forum below Business is gone. Is that intentional? Oddly, when I browse the forums on mobile it doesn't appear either. Anyway just curious if it was just not showing up for me.
  5. Thanks for your help Azrael. I can confirm this.groupArray.push(this.add.group()) works fine. Error on my part.
  6. I receive a "Cannot read property 'group' of undefined" when I try instantiate and add group to array. I know this is more of a general javascript question than Phaser-specific but I thought I'd ask. - Thanks
  7. Hey everyone, how do I create an array of groups? I've tried things similar to this.groupArray.push(this.add.group()); Thanks
  8. "Diesoft will gain rights to modify, distribute, use for commercial usage" Nothing shady about that....
  9. Mattstyles: I'm getting an undefined error. Shohan: I am able to create a global object using your approach: game.global = { monkey: 15, gameManager: new GameManager(), TestIt: function() { console.log('Shohan'); } }; This allows me to reference gameManager elsewhere like this: this.game.global.gameManager.doStuff(); Does that seem like a viable approach? Thanks for the input guys.
  10. Hey there, I'm new to javascript and I'm trying to figure out how to create a global singleton for generic functions. I can create global variables in the Boot state, but I'd like to create an object that holds global vars and functions. I'm instancing a custom GameManager script in the index.html file like so: //initialize framework var game = new Phaser.Game(640, 960, Phaser.AUTO, 'game'); //create global object var gameManager = new GameManager(); My GameManager.js file looks like this: var GameManager = function GameManager() { console.log('game manager created'); this.myName = "adrian"; this.GetName = function() { console.log("my name is "+this.myName); } }; The problem is gameManager object is undefined elsewhere in game. Any suggestions? Thanks
  11. Phaser is a neat gamedev framework.