I've been trying to fix this for about 3 days now, and I can't seem to find why it doesn't work.  I've got this function, which loads an image, and loads through all the pixels to create a grid of walls for A* pathfinding. I'm usi...
i've some problems with craftyjs, collision and polygons.  Here is my code: http://jsfiddle.net/haenx/85mhj/  As you can see, the player will hit the enemy each time both boxes are overlapping. But the given polygon has another form and it semms...
This is a follow-up question to this  I started using the localStorage function, and am unsure whether or not its working as intended.  I want to overwrite a boolean in my JSON file.  Player hits an exit in a stage, then it triggers the load of the n...
I'm using http://craftyjs.com/ for the Github Game Off, and I'm having some trouble with animation. The first time I start the animation (when I initialize the player entity in the main scene) it works. But when I set the animation via my Cus...
I am trying to create multiple hitbox areas in my game, but I can't find any documentation or examples of how to work with them. The scenario is, my "Hero" have 2 hitbox, one on his feet and another on his body. If he hits an enemy with t...
If I change the e1 attribute y to 1 or some other positive value this code works, but if the y is 0 or negative it fails. There are no errors but the shape does not appear. If I draw other kind of shapes, same kind of problem occurs. Anyway, rotation...
I'm playing around with the Crafty.js game engine. I have a small game where the player is a ball and he drops down to platforms. Every time he hits the next platform, he gains a point. The score is stored as a variable and displayed on screen. I...
When using a sprite with a transparent background with crafty.js, It comes up with a white background that I cant seem to get rid of, I made the sprite myself and am very new to javascript, Crafty and Stackoverflow, heres my code  Crafty.scene('W...
I have two variables (the enemies and players helath) that change when a certain event happens, the problem is that I dont know how to change text, or remove text, so I cant change the displayed health on the screen (currently I am just placing the n...
Im trying to use the Motion component in crafty.js but I fail at the most basic things. It seems like the 'Motion' component is not added.  Like this very simple code from example code in the docs.  var ent = Crafty.e("2D, Motion");...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.