At 5/20/09 09:59 PM, MorrowDays wrote:
oh thats okay then, you'll both be busy enough.
lochie, I'm making something for school and I need a code that will make some text appear when the character (areal view like in gameboy zelda) steps on certain object on screen.
I have no AS vocabulary but I figured it would be something like:
if (character.rollOver == true) {_certainspotonscreen.gotoAndPlay (2);
}
but that doesn't work! :P
Any ideas?
I guess you'll have to give your char and the certain object a instance name and make a hittest, then make a dynamic text area and put your text in. Then code the frame like
onClipEvent(enterFrame) {
if(_root.char1.hitTest(_root.object1)) {
_root.text1.gotoAndPlay (2);
}
This is AS2 and don't blame me if I'm wrong :D
R.
Replace char, object and text 1 by your instances, but you probably already knew that. ;)