Profile cover photo
Profile photo
Bart K
80 followers -
The founder of OpenGameArt.org
The founder of OpenGameArt.org

80 followers
About
Bart's posts

Post has attachment
I need some help... I keep getting this error, here:

Uncaught TypeError: Cannot call method 'draw' of undefined

When I remove ".controls()" from the end of the init function, it works most of the time, but when it's there, never works.

Is there any way I can find out what exactly it's trying to draw?

Here's the link to my code:

http://static.opengameart.org/pdj/index.html

Post has attachment
So I'm running into kind of an odd bug...

I changed my tile map around a bit and moved the player starting position a lot higher up, and now I seem to hit an invisible wall when I run to the left.  There's nothing there on the map (objects, funny tiles, etc), and what's really weird is when I log the collision object to the console, it seems like it's picking an existing sprite, seemingly at random to return as the collision object.  (When I remove that sprite from the map, it just returns a different collision object).

Actual collisions with map tiles correctly return the tile as the collision object.

Any idea what might be causing this?  You can see it happening here:

http://static.opengameart.org/jsplatformer/game.html

Note that I'm using the version of Quintus with some customizations of my own, so it could be that I broke something.  I'm just kind of in the dark as to what that might be.

Post has attachment
Random tip:  You can "cheat" and use HTML for your UI by putting an absolute positioned div directly over top of your canvas element.  If you're running firefox, you can see this in action here (I don't believe my game currently works in Chrome, IE, or Safari -- I'll address this later):

http://static.opengameart.org/jsplatformer/game.html

A little bit of jQuery and you can add snazzy UI animations as well.

Is there any way to designate areas on a map without tying them in with sprites or map tiles?

Is there support at the moment for sloped map tiles?

Post has attachment
I tweaked the 2D platformer jumping behavior a bit and added a function that loads entire TMX maps in one line.  Check out this branch here:

https://github.com/lendrick/Quintus/tree/lendrick

I started with the 0.1.5 tag because it didn't have layer issues, but the new additions should theoretically work with master with minimal fuss.

See it in action here:

http://static.opengameart.org/jsplatformer/game.html

(Don't mind the broken diagonal tiles)

My non-collision layers don't seem to be showing up in the latest Git version.  Has the way of inserting them changed since 1.5?
Wait while more posts are being loaded