Search the Community
Showing results for tags 'invisible'.
Found 4 results
Hey! I've been getting started on developing a game for Phaser, and I've run into an issue. It's a bit hard to describe, but I linked an image of my game to kind of describe it. The balls that you see on screen are meant to go inside that box. They move across the screen. I want them to not be visible outside the box, that way it looks like they ease into it. The problem is, I'm not sure how to do this without it going over my background (the lines that you see on the outside of the box). How can I make it so the sprite is only visible inside the box?
Hi everyone! I am currently facing a very weird behavior... In my test-project there are two maps, each contained in a group. With the R key you can switch from one map to the other (this basically makes one map invisible and the other visible). I have put a character into the first map, which is a basic Sprite object. With the arrows you can move the camera (the character, however, can't do anything). If you move the camera in the first map : everything is fine. If you switch to the second map and move the camera, the character mysteriously starts moving and falling through the floor. The debug hitbox does not match at all the debug text. The scene seems pretty much messed up. Can anyone see a problem in my code? Is it a bug? Thanks in advance for your help! PS : I attached the code PhaserDemo.zip
Hey guys, In my game I hide some sprites by setting their visible setting to false. Problem is, my collision detection still detects if these invisible sprites are getting hit. I would like to know how I can make the collision detection ignore them. Recently I've seen a option on these forums which was something like sprite.collision = false. I think it was an option to ignore the collision of a certain sprite. Too bad I can't find that post or option anymore, so that's why I'm making a new post about it. Hope anyone can help me, otherwise I'll have to write my own detection for just visible sprites but enabling some kind of option would be much easier. Thanks, Kevin
Hello! I'm founder of www.FreezingMoon.org - we're indie game developers working on an open source browser based TBS www.AncientBeast.comWe're considering adopting a game/rendering engine in order to make the game more playable on tablets and phones https://github.com/FreezingMoon/AncientBeast/issues/425 The gameplay coder has a question: Also, what's the state of documentation? Would rather see that instead of almost daily change log xD So far Phaser looks awesome, I really dig the website :-)