PDA

View Full Version : Dynamic Text Trouble



Holmesc
September 30th, 2006, 12:33 PM
All right... So I'm making a shooter game with my friend. For the player's stats etc., we have an MC called 'visor'. Within this visor lies a dynamic text box with the var of 'info'. Info displays information about where you are and what's going on. For example, when your health gets low, info displays 'Health is low!'. Now, that all works fine. However, sometimes the aliens that you shoot at appear partly behind the visor. This is fine because the visor has a low alpha value, but when the alien is behind the info box, you can't shoot him! This is because Flash thinks you are trying to highlight the info box, not kill an alien. Is there some way to ignore the info box, or any sort of remedy? Thank you in advance!

Here's the link to the game's beta: http://http://www.freewebs.com/coolblue_17/alienshooterbeta.htm (http://http//www.freewebs.com/coolblue_17/alienshooterbeta.htm)

Dhryn
September 30th, 2006, 07:17 PM
When I played your game I found no problem.

Dont know if you have already fixed it but if you havent try selecting the dynamic text field, going to properties and turn off the selectable option, it looks a bit like Ab, with the b in a black square.

Hope this helps

Holmesc
September 30th, 2006, 09:05 PM
No, I didn't fix it yet... but in only a few spots are there text that doesn't work. The text that has the problem is the 'Alien activity detected in the caves ahead'. Odd. Anyway, thanks for your help - all the text now works!

Holmesc
October 1st, 2006, 05:39 PM
Ok, new problem/question. I want to create the tip of the player's gun, and have it rotate to follow the mouse. However, I can't find any tutorials that address mouse angle detection. Please help!

nathan99
October 1st, 2006, 06:16 PM
person.arm.onEnterFrame = function(){
this._rotation= -(Math.atan2(this._x-this._parent._xmouse, this._y-this._parent._ymouse)/Math.PI*180)
}