Jump to content
  • Advertisement
Sign in to follow this  
  • entries
    271
  • comments
    969
  • views
    189565

Carriers!

Sign in to follow this  
Sir Sapo

216 views

Hey everyone!

Well I planned a huge entry tonight, detailing all the shit I did, but as I was coding my main project for the night, the Aircraft Carrier, I found a fatal flaw in my airfield system, which had to be remedied, which means all you guys get tonight is a screeny of the Carrier with a Partisan parked on top.

Carrier
This was actually really easy to get working, the only problem was that I realized that with my current system, if there were more than 2 landing areas on a map, they canceled each other out, and the aircraft couldn't land on either of them. The problem stemmed from my collision system, in which the airfields tested if the plane was landed on it, and also if the plane was not landed (ie. it had just taken off). This works great until you have two airfields, for example,

Airfield #1 says "okay, you've landed on me, I'll set your landed flag to true"

Airfield #2 says "you haven't landed on me, so I'll set your landed flag to false"


See if you can find the problem there[wink]

So to fix it, I had to switch the plane to be in the non-landed state by default, and the airfields could only say if the plane landed on them, and couldn't make the plane "not landed". Needless to say, this worked, but broke about 20 other things, which took hours to fix.... so yeah, Carriers work now[grin]

Here's a screen of the Carrier(NOTE: the blast deflector, which can go up and down) with a Partisan parked on top (with folded wings and everything).


Well, thats all for now, hopefully I can get some more done tomorrow, Peace Out!

Sign in to follow this  


1 Comment


Recommended Comments

Looks like I need to figure out a way to do better water.

I'm thinking a slightly textured gradient or something, bah, I'll figure it out

Share this comment


Link to comment

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.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!