I’m trying to make a arcade style boat game, but i’m a little stuck with the boat’s water wave tail. It overlaps the boat . I guess it’s bec. the tail code adds higher dephs to the waves than the boat and other stuff there have.
Here’s the alpha of the game(most things are still undesigned), the move around keys are E,D,F,S+shift as a turbo and LEFT,RIGHT,UP,DOWN+L as a turbo:
http://www.zone.ee/avp2estclan/buratiino_limonaadi_m2ng_0.12.html
here’s the water wave code:
ActionScript Code:
[FONT=Courier New][LEFT]intervalww = [COLOR=#0000ff]setInterval[/COLOR][COLOR=#000000]([/COLOR]uuendaww, [COLOR=#000080]50[/COLOR][COLOR=#000000])[/COLOR];
[COLOR=#000000]var[/COLOR] n:[COLOR=#0000ff]Number[/COLOR] = [COLOR=#000080]0[/COLOR];
[COLOR=#000000]function[/COLOR] uuendawwCOLOR=#000000[/COLOR] [COLOR=#000000]{[/COLOR]
n = n + [COLOR=#000080]1[/COLOR]
[COLOR=#0000ff]duplicateMovieClip[/COLOR][COLOR=#000000]([/COLOR]mccc2, [COLOR=#ff0000]“newImg_mc”[/COLOR]+ n, n[COLOR=#000000])[/COLOR];
[COLOR=#0000ff]trace[/COLOR][COLOR=#000000]([/COLOR][COLOR=#ff0000]“circle1_mc”[/COLOR] + n[COLOR=#000000])[/COLOR];
mccc2.[COLOR=#0000ff]_x[/COLOR] = -[COLOR=#000080]100[/COLOR]
[COLOR=#000000]}[/COLOR]
uuendaww
[/LEFT]
[/FONT]
Any ideas, how to fix it?