PDA

View Full Version : Manipulating vectors with ActionScript


AstAn
07-01-2004, 11:29 AM
This is my problem:
We want to create a Worms like game with Flash. For the creation of the level, we want to add and remove parts to the landscape by using the rubber and the painting tool.
Is there a way to do this with ActionScript?

Example: Rocket hits ground (left) (http://www.gamigo.de/pics_screenshots/530/9165_640x480.jpg)

greetings
Daniel

hangalot
07-01-2004, 12:06 PM
do u mean letting the end user do this. the drawing api i would imagine.

AstAn
07-01-2004, 12:24 PM
Painting works fine, but I can't find a way to delete parts of the landscape so the part becomes truly transparent. Isn't there a "rubber pen"?

greetings
Daniel

hangalot
07-01-2004, 12:34 PM
you wuldn't be able to delete only a part of it AFAIK. so u can drop extra fills on top or you can redraw the whole thing.

praufet
07-01-2004, 06:03 PM
you could use the drawing api to mask out part of it so it wouldn't show