Afternoon all! :0)
I'm making a top-down multi-directional shooter / adventure hybrid (Anyone remember Mercenary? It's going to be very similar to that, but 3rd person / 2D).
I'm competent enough to get the scrolling up and running, and the realistic movement of my spacecraft.
That's the background - here's my question:
I'm going to be using a tiled wrap-around map for the 'floor' that the action takes place on. (Hence my other question regarding dynamic alpha!) I want my ship to be able to change it's altitude over the map. I can achieve this to some effect by scaling my ship sprite up and moving the shadow it makes appropriately. However, I'd really like to have the 'floor' appear to be shrinking away from the ship to some extent too. This at first sounded simple, just scale the tiles appropriate to how far away they are supposed to be. But this cales the tiles and leaves 'space' around the edge of each one - not the effect I was after! :) How would I go about scaling this effectively?
Some other useful info.:
- The players craft is 'locked' to the centre of the screen.
- The map is perfectly wrap-around, there are no edges. (I have a feeling this makes my problem more difficult!)
If I need to explain clearer, please let me know...
Cheers!
I'm making a top-down multi-directional shooter / adventure hybrid (Anyone remember Mercenary? It's going to be very similar to that, but 3rd person / 2D).
I'm competent enough to get the scrolling up and running, and the realistic movement of my spacecraft.
That's the background - here's my question:
I'm going to be using a tiled wrap-around map for the 'floor' that the action takes place on. (Hence my other question regarding dynamic alpha!) I want my ship to be able to change it's altitude over the map. I can achieve this to some effect by scaling my ship sprite up and moving the shadow it makes appropriately. However, I'd really like to have the 'floor' appear to be shrinking away from the ship to some extent too. This at first sounded simple, just scale the tiles appropriate to how far away they are supposed to be. But this cales the tiles and leaves 'space' around the edge of each one - not the effect I was after! :) How would I go about scaling this effectively?
Some other useful info.:
- The players craft is 'locked' to the centre of the screen.
- The map is perfectly wrap-around, there are no edges. (I have a feeling this makes my problem more difficult!)
If I need to explain clearer, please let me know...
Cheers!