Be a Supporter!

help as2!!

  • 231 Views
  • 1 Reply
New Topic Respond to this Topic
BabySteps
BabySteps
  • Member since: Sep. 28, 2011
  • Offline.
Forum Stats
Member
Level 02
Artist
help as2!! 2012-01-23 12:23:53 Reply

what i'm asking is a little hard to explain, so bare with me.

i need a script for my game that when i push a button (T) it performs an action with a hit test in the animation, when the hit markers hit, it is supposed to add health but it doesn't. anyone know?

onClipEvent (enterFrame) {
if (_root.tbag, hitTest(_root.tbag2)) {
_root.health++
}
}

(or something like that, i don't remember... the game is at home)

Janj
Janj
  • Member since: Nov. 10, 2009
  • Offline.
Forum Stats
Member
Level 03
Blank Slate
Response to help as2!! 2012-01-23 18:35:17 Reply

if (_root.tbag, hitTest(_root.tbag2)) {

change the comma to a period

if (_root.tbag.hitTest(_root.tbag2)) {

fixed