Jump to content
  • Advertisement
  • entries
  • comments
  • views


Sign in to follow this  


Well, that was pretty easy. I've got scripting plugged in somewhat. I can't create maps with it quite yet, but my maps have an OnCreate() function and in that I can create entities using CreateEntity(this, EntityFileName);

I'm going to set it up with a OnStartUp() function that gets run when my game first opens. From there I'll create maps and such.

I also got pathfinding hacked into it. I'm still having a major problem with movement though. If I click while the object is moving and it isn't DIRECTLY on a tile, it stops moving altogether (it won't move anywhere, even if I click a different spot or a different entity and then it again.) Anyway, here's a screenshot:

The cool part is because of the way I setup my pathfinding, animating and pointing the character in the right direction will be easy. When I was doing my testing I added a value named m_nDirectionFromParent so that I could draw the little pointers (to tell where exactly he was going.) All I have to do is invert the direction and I have my animation (which is also easy because I have GetOppositeDirection().) Being prepared FTW!

Anyway, hopefully when I update later I'll have events all set up.

Also, if you want to check out my HtmlLog code, look at my last entry.
Sign in to follow this  


Recommended Comments

There are no comments to display.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!