Jump to content
  • Advertisement
Sign in to follow this  
  • entries
    686
  • comments
    1952
  • views
    387783

Shameless plug in 5...4...3...2...1

Sign in to follow this  
Stompy9999

84 views

In case you haven't played the Invasion demo yet:

LINKY

So anyway, I took into account the comments Sir Sapo left me yesterday in order to improve the gameplay. So here were the two problems and how I fixed them.

1. There is an offset from where I click to where the unit actually moves.

The reason this happened is because when I was writing the clicking code, I made the unit's coordinates equal the mouse's coordinates. This means that where you clicked will become the top left corner of the unit, rather then the middle. I fixed this by applying an offset from the top left.

2. All the AI units move at the same time.

This was just me being lazy and just wanting to move all the units with a simple function. I hacked the AI code today so that you can see each individual unit move.

Sadly, none of these changes have been uploaded to the webspace, and I don't intend to upload a new demo for awhile.

Anyway, that is about it. Play the demo, have fun, be happy, and drink Dr.Pepper the real man's soda.
Sign in to follow this  


2 Comments


Recommended Comments

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.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!