Forum Topic: Buildings over/under player

(74 views • 2 replies)

This topic is 1 page long.

<< < > >>
Expressionless

Frankmank

Reply To Post Reply & Quote

Posted at: 10/10/09 09:08 PM

Frankmank DARK LEVEL 06

Sign-Up: 06/11/06

Posts: 535

I'm making an RPG, and all the artwork is isometric, so i'm wondering how I can make a building go over the player when their behind it and under them when they're infront, so far I can only do it with one corner, if the building has 3 corners exposed it doesn't work, help please.

onClipEvent(load){
this.gotoAndStop(2);
}
onClipEvent(enterFrame){

if (_root.player._y <= 101.7){
		this.gotoAndStop(1);
}
else this.gotoAndStop(2);
}
BBS Signature

None

Torrunt

Reply To Post Reply & Quote

Posted at: 10/11/09 05:24 AM

Torrunt LIGHT LEVEL 20

Sign-Up: 05/03/07

Posts: 263

You should look into swapDepths and other depth related actionscript.


None

Yambanshee

Reply To Post Reply & Quote

Posted at: 10/11/09 06:56 AM

Yambanshee DARK LEVEL 11

Sign-Up: 10/05/08

Posts: 1,587

player.swapDepths(player._y)
buildings.swapDepths(buildings._y)

you get the idea ;) go look it up

AS2||AS3||Motox
Thanks to hdxmike for the sig :]

BBS Signature

All times are Eastern Standard Time (GMT -5) | Current Time: 02:04 AM

<< Back

This topic is 1 page long.

<< < > >>
You need a Grounds Gold Account to post on the NG BBS! If you don't have one, click here to sign up now! It's fast, free, and easy — and opens up tons of great NG features!