• Content Count

  • Joined

  • Last visited

Everything posted by Twiggy

  1. It didnt give me a line on m in the editor but if it pops up again I should check the console?
  2. Hello @enpu, I still received the :Uncaught TypeError: Cannot read property "indexOf" of undefined. Im going to try rewriting that class entry altogether. Thank you for the speedy reply
  3. game.module( 'game.main' ) .body(function() { game.addAsset('square.png'); game.createScene('Main', { backgroundColor: 'blue', init: function() { //add Physics = new game.Physics(); = 2000; //boundary physics body(floor) var floor = new game.Body(); var shape = new game.Rectangle(); //shape of physics body shape.width = game.width; shape.height = 60; //position for floor physics body floor.position.x = game.width / 2; floor.position.y = game.height - 30; //collision floor.collisionGroup = 1; floor.static = true; //add created shape to body floor.addShape(shape); //add body to world floor.addTo(; //roof / top collision var roof = new game.Body(); roof.position.x = game.width / 2; roof.position.y = 30; roof.collisionGroup = 1; roof.static = true; roof.addShape(shape); roof.addTo(; //Left / Right Border collision var borderL = new game.Body(); var borderShape = new game.Rectangle(); borderShape.width = 60; borderShape.height = 900; borderL.position.x = 30; borderL.position.y = game.height / 2; borderL.collisionGroup = 2; borderL.static = true; borderL.addShape(borderShape); borderL.addTo(; var borderR = new game.Body(); borderR.position.x = game.width - 30; borderR.position.y = game.height / 2; borderR.collisionGroup = 2; borderR.static = true; borderR.addShape(borderShape); borderR.addTo(; //containers this.obstacleLayer = new game.Container(); this.playerLayer = new game.Container(); this.collectableLayer = new game.Container(); //add containers to the stage this.obstacleLayer.addTo(this.stage); this.playerLayer.addTo(this.stage); this.collectableLayer.addTo(this.stage); this.player = new game.Player(); this.player.sprite.addTo(; } }); game.createClass('Player', { init: function() { this.sprite = new game.Sprite('square.png'); this.sprite.anchorCenter(); this.body = new game.Body(); this.body.position.x = game.width / 2; this.body.position.y = game.height - 100; //possible collision groups this.body.collideAgainst = [1,2]; this.body.velocityLimit.y = 1150; var shape = new game.Rectangle(); shape.width = this.sprite.width; shape.height = this.sprite.height; this.body.addShape(shape); this.body.addTo(; this.body.collide = this.collide.bind(this); } }); }); Hey Guys, work finally slowed down enough to give me time to give Panda2 another shot but I need some help. I receive this error, but am not sure what it means when I edit the Player class "this.body.collide = this .collide.bind(this); Uncaught TypeError: Cannot read property 'indexOf' of undefined when I try to comment that section out it gives me Uncaught TypeError: Cannot read property 'indexOf' of undefined what am I missing? Also if I made an error in how I posted let me know so I dont in the future.
  4. Building JavaScript Games by Arjan Egges was a good one if your looking for pure JS, little dated now but still.
  5. Didnt Elliots Quest have like a quick demo a while back?
  6. Hello Everyone hope the holidays are treating everyone nicely so far. Does anyone have any articles or youtube videos they have found interesting regarding HTML5 games in general? Not tutorials but something they found as s good read or listen to for general design or buisness practices on the subject? I liked reading T.Vs blog posts and several of the videos from CasualConnect on youtube and wondered if anyone had others they found particularly informative. Best wishes, Twiggy
  7. Twiggy

    Game Art

    I would give Inkscape a try for a free program, I suck but I can made some basic graphics for atleast a place holder.
  8. I loved Aion due to the rich story and amazing character customization and it does have open world battles both on land and in the air, usually it started out fun but then one side gets pushed to the guards and it becomes guard hugging and spamming insults. Since it went F2P a while back though I think it went downhill, it has one of the least obvious P2W style models ive seen out of F2P MMOs but still, lost alot of the love I think I still like reading fanfiction and stuff because again, it had a rich story and world building.
  9. Was really big into Aion at one point, plus the obligatory WoW Phase we all have.......though now I play mostly overwatch.
  10. Twiggy

    Text Tutorials

    ......Dont suppose you can make a text tutorial on building a multi million dollar html5 Game Dev company from the ground up next? J/K Seriously though thanks for being so fast on this stuff.
  11. Twiggy

    Text Tutorials

    Hey Everyone, Any text based tutorials for Panda2? Even if its the basics? Im more of a book learner than a video learner. Thanks if anyone can link one
  12. Twiggy

    Stupid question

    I kinda meant what form does the JS take, is it like typescript or regular JS but the question was still answered so thank you very much. I love the editor and your always fast response. Thank you @enpu
  13. Twiggy

    Stupid question

    Hey Everyone, stupid question im relatively new to Js in general mostly using GMS:2. Panda2, is using typescript or like...#strict javascript? If I learn Javascript will it transfer over to using the framework? From what little JS ive been learning from CodeAcademy, im able to read some of it but still alot confuses me. Anyways, Thanks for anyone looking at this.
  14. GM1.4 actually, but yea total fluke thing that happened. Thank you very much for your response Matt, it is appreciated. Im going to stick with GMS since it can export to mobile and web, but still going to practice with Phaser cause I like it. Plus knowing JS will probably help in the creation of extensions and stuff for GMS web specific games.
  15. You are definitely correct when you said I over think things, working on that but not having much success. I have gotten a few games out with GMS and even sold one with the html5 export which is part of the reason I would rather use Javascript and because I find it a more useful language then GML which although is coding it teaches you logic and not much of actual coding. Ive done a few courses with Javascript on Code Academy and CodeAvengers coding combat was kinda fun. Unfortunately I dont think I will find the mythical jack of all trades engine, one way or another though I do intend to learn Html5 for atleast basic web development, figured why not try and learn it in a game dev context.
  16. Hello Everyone, Ive been at a standstill for longer then I care to admit as for the direction I want to go. Ive been wanting to create my own games since highschool but have always been stuck as to the best way for me to do it. I know of the many different ways to create video games, ive researched all the different engines and multiple languages and frameworks that make it far easier to create your own game then it was back when I was in highschool and was put off by needing year and years of study in a complicated language to do so. However thats not really needed anymore, helpful to be sure but now a brain dead like me can actually do it. My only real roadblock is my own self doubt due to a particular subject. I have someone who is actually pretty intelligent, something I also prefer to not admit most of the time due to him being an older sibling and yea......anyways. Ive been told by him that html5 games are the future and the technology is growing faster and stronger, although I do agree with him on that even though that html5 webgame boom appears to have ended. Those that wanted to get into it to make some quick money have moved on to other things and those special lucky few have been able to start making a decent sized living. Anyways, my main focus right now is 2D games mostly focusing on story / puzzle solving and a small love of tower defense style games and rpgs like LTTP and similar style games. I know I wont be able to create my own LTTP the game in a weekend.....a couple years probably by myself maybe less if I gain enough skills to be part of a team..... My issue right now is that although I do agree that HTML5 games have a place in the future of gaming, I dont just want to make casual style games which is basically all you see from the html5, match3, sliding puzzles find it games and similar which isnt a bad thing mind you due to them being easier to create. I want to know though, for non casual games is it still practical to use a JSFramework like Phaser or even PlayCanvas to create larger games that you intend to wrap as a hybrid app for Desktop and Mobile device, or use something like GameMaker Studio which can do all those things? I dont mind learning the JS/Phaser and even had a frustratingly fun time doing the LessMilk Flappy Birds tutorial for Phaser. Its just I dont want to go through the process of learning the technology if I am not able to use it to create the style of games I want to be able to in the near future given the proper time and resources. I know I can use GMS2 to actually create those styles of games I wanted, but I wouldnt really be learning a real language and just logic, and I dont really want to keep spending money on exports and updated engine in 3 or 4 years (I really dont care for unity and am sorta sick of people saying "Just do Unity man"). I know Elliots Quest was done in Impact.js and it was a pretty fun game, the ROBO Game on the Playstore is also kinda fun and done in Phaser.js I thing, so it does give me some hope for larger games. Anyways, I didnt really have much structure to this post and it turned out to be more of a semirandom collection of works and turning into one of those " Can I create this type of game" posts which I am sure everyone is sick of. So.... TL:DR have Hybrid WebApp Games reached the point where they can compete in terms of speed and power of native apps for non casual games? Thanks for everyone that read this post and I hope most of you guys didnt claw your eyes out from reading it. -Twiggy