Forum Topic: As3 - Real Map Object Problem...

(56 views • 1 reply)

This topic is 1 page long.

<< < > >>
None

Draglino

Reply To Post Reply & Quote

Posted at: 6/29/09 11:10 AM

Draglino DARK LEVEL 03

Sign-Up: 11/07/07

Posts: 45

Hi. In a platformer game there are 2 types of walls. One for that you walk, one for that you touch and bounce back. But if you make maps a movie clip, theres only 1 map in there. So you do if hero touch the map. In this setup, how can i make map components like buildings, like ramps but not direct walls. Like if theres a ramp, i get a point and if player touches the ramp by this point, he goes up 1 pixels, i make it a While statement so it goes up instantly. But becouse i do like that, if my hero touches a direct, bouncing wall he goes up by this wall. How can i prevent that ?

Also i want to if player enters a bulding it gets to .5 alpha and we can see the things inside of it. How can i do that ?

I was doing 2 types of movie clips one for map one for map components. And make player if he touches that component, etc etc happens. But its hell hard becouse i need to get that to its original location in map. And its hella hard. Is there any other ways of doing this ?


Shouting

Woadraiders

Reply To Post Reply & Quote

Posted at: 6/29/09 02:16 PM

Woadraiders DARK LEVEL 11

Sign-Up: 11/11/07

Posts: 561

I don't understand what your questions are, could you please be way clearer and speak in flowing english?

The one thing I did understand was that you wanted buildings to go semi-transparent when you walk behind them. You can just change its .alpha property after you know if you're behind it or not. This code will probably be almost identical to your platform hitting code.

Mibbygames.com
panterA

BBS Signature

All times are Eastern Standard Time (GMT -5) | Current Time: 08:24 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!