[quote] If you're going with an image-based map editor, you'll need to rethink the collision. I'm thinking about an object/entity editor where you can pair collision data with an image, thus defining a custom shape other than squares.
I started work awhile back on something like this but quit before I got very far. Here's the editor I was making:
http://forum.thegamecreators.com/?m=forum_view&t=201602&b=8
If you'd like to use it and add on to it for your project, I'll dig up the source code for you.
[post] Oh okay... I appreciate the help by the way first off. Secondly, The collision has been a problem and I've been thinking of different ways to make it smoother. The example you have shown didnt really shed any light as of yet of what I need to do, pardon my ignorance! I have been using something like this for collision
my variables for Link are as follows:
player(1).x = x position on screen
player(1).y = y position on screen
player(1).oldx = stored position before movement on x-axis
player(1).oldy = stored position before movement on y-axis
Variables for other images:
image(i).x = x position on screen
image(i).y = y position on screen
image(i).collisionflag = [0] no collision [1] for collision
Heres another screenshot
- Infinity is Simplicity -