Jump to content


  • Content Count

  • Joined

  • Last visited

About owen

  • Rank
    Advanced Member

Recent Profile Visitors

2206 profile views
  1. Hi, I know I'm almost a year late but I still want to know how to add collision to a child sprite. For example I have a player holding a sword (player.sword) and I want to detect when the sword hits an enemy. The collision for player hitting sprites isn't picking this up. Any ideas? Cheers, Owen
  2. Thanks guys for the feedback. I am going to take on board your comments in the next update. I hope you will comment again. @sodomo - around 25 years total of which 20 professionally (not games though!). I actually feel that my code for this game is very messy and I need to refactor it a lot. @Daniel - TBH, I was deliberately going for a minimal/retro feel with the graphics. I was actually going to make them even simpler at one point. I wanted to capture the spirit of the old Space Invaders games of the 80's. But you're right, nicer graphics would make for a nicer game. Also I do hav
  3. Hello again. Well I have made a lot of changes to this game which is still work-in-progress but it has come a long way since I last asked for feedback many months ago. Basically Penguinvaders is a simple "shoot the aliens in space" game in its purest form, just shooting aliens, collecting power ups, that's all. (The difference being instead of a spaceship you have a penguin!). I wrote it using HTML5 with the Phaser framework. I used MS Paint plus some limited imagination for my sprite creation. I used my 1980's upbringing for some retro games inspiration. I would appreciate any feedback o
  4. That worked a treat - thanks!
  5. Hi I want to make a boss sprite 'flash' when it takes a hit. I am thinking along the lines of doing something to the colour of the sprite, maybe turn it red then back again. So maybe apply some kind of colour filter on it. What I want to avoid is having to swap to a different coloured sprite and back again. Any ideas? Thanks O.
  6. Thanks. Now I am leaning toward the self-made on screen keyboard as per MarkPal's suggestion. For the purpose of hi-score name entry it might just do the trick and I could make it look nice too.
  7. In theory yes but I can't get a reference to the position of the canvas or position my HTML element in relation to it, so for example it sits in the middle of the canvas.
  8. CanvasInput looks like a really good solution... nice and easy... in theory. But I cannot get it to work. First it gave an error, not finding my canvas even though the ID was correct, then I found a workaround for that so it finds the canvas and now it seems to display the input beneath the canvas, not on top, so I cannot see it. Have you managed to sucessfully use CanvasInput? If so please can you share the code? Owen
  9. Well JS prompt is certainly another option I hadn't considered. The problem is the look and feel is so horribly different and you can't control the details of the input (eg. max length). It could work as a temporary workaround though. Thanks for the idea.
  10. What is that please? Got a link for it?
  11. Well I'm glad it's not just me! Now just thinking of some possible ways around it. How about these: 1. I could write my own text input. This seems a lot of work for a simple feature and won't include all the mobile-friendly assistance built into HTML5/CSS3. On the plus side it would be reusable in later projects and would integrate nicely within the framework. OR 2. Make a separate HTML page outside of the game, which looks similar to the game canvas, but is not a canvas at all, just an HTML web form. Redirect there when user gets a hi score. Then go back to the game when they clic
  12. Hmmmm. I have this same problem. But I'm sceptical of the 'best answer' (sorry Tom!). Is it really best to make your own when there is a good HTML input available which will work nicely with mobile devices too?
  13. Hi, this is really simple, I just want to include an HTML text input for my hi score entry page where the player can enter their name. I want the text input to appear right in the middle of my game canvas. But I am having trouble positioning any HTML element in relation to the game canvas, or any items within the game div. (I can't seem to even make the input appear on the top left corner of the game canvas). Is there a simple example for displaying an html INPUT element within a Phaser game? Or is there maybe a better way of grabbing text input within a Phaser game? Any ideas? Than
  14. Penguinvaders is a retro 2D space invaders style game where you control a penguin who shoots invading aliens. The objective is to survive all the waves of aliens and not let them destroy your stock piles of ice cubes and stuff. I used http://www.phaser.io/ as the client framework plus a load of JQuery and Javascript of course. I designed all the sprites myslelf using MS Paint, Photoshop, GIMP. There is some minimal mobile support (on screen controls). But it is much easier / more responsive on a PC using cursor keys to control the penguin. The audio is very much work in progress and
  15. Hi, another newbie-ish question here. I'm happy with moving sprites using tweens when the path is a straight line, but I also want to move a sprite around in curved path, like a rainbow or a U shape or possibly an oval or circle. I am struggling to understand how I can do this with a tween. I need a simple example or two ideally. Can anyone help? thanks Owen
  • Create New...