PDA

View Full Version : Slopes movement AND/OR floor erasing


bmxdude
02-27-2008, 05:48 PM
Im in the middle of making a Worms style game.
Got all the code sorted, all self-taught and written by myself...
Except two things:
1. Movement.
2. Floor erasing.

1. I can make my player move on the floor, left right, jump etc. However when I walk up a hill, it doesnt walk up the hill, it decides it'd be best to walk through the hill/slope, and to be such a calcitrant as to have to hold jump to rise up the body of the hill.
Ive surpassed this now, and I have the most simple solution, but its still no good. Ill attach an swf of what I have of my game so far so you can see the glitches.

2. The second problem I have is I have no idea whatsoever how to go about erasing the floor when it's been shot. Ie - in Worms, you can shoot through the land until you get to where you like, but how do I replicate this?

Any help is greatly appreciated, Ive been stuck for days :(

bmxdude
02-27-2008, 05:55 PM
oh yhh, player one keys are LEFT RIGHT UP DOWN and "?/" to fire
player 2 is T F G H and Q to fire.

bmxdude
02-27-2008, 05:56 PM
http://www.swfup.com/file/140907

rrh
02-28-2008, 04:28 PM
I think in artillery games like Worms or Scorched Earth, the ground is usually a bitmap. Then, when something is exploded, it erases part of the bitmap right around the explosion.

bmxdude
02-28-2008, 07:37 PM
Yhh, thats what Ive heard from people.
Any way of doing that in flash mx?
I know you use bitmap32 in flash 8, but Im only on mx >.<

thanks for replying btw :)

rrh
02-28-2008, 08:07 PM
I have not done any bitmap manipulation in MX.

Now that I think about it, Scorched Earth may have used an array of heights, like a fine-grained bar graph. Which might be easier to implement in older versions.