Post: Need Help w/ Flash
05-09-2014, 05:38 PM #1
Duddy
Little One
(adsbygoogle = window.adsbygoogle || []).push({}); So I don't know if many of you know too much about Flash (Flash Professional) because I'm having trouble. Does anyone know how to get around having objects with the same instance name, all register and work with hitTests? Like I have a ball bouncing on pads, but I hate having to script every pad hitTest because it looks messy. Any help?
(adsbygoogle = window.adsbygoogle || []).push({});
05-11-2014, 11:17 AM #2
nay1995
The Master
Originally posted by Duddy View Post
So I don't know if many of you know too much about Flash (Flash Professional) because I'm having trouble. Does anyone know how to get around having objects with the same instance name, all register and work with hitTests? Like I have a ball bouncing on pads, but I hate having to script every pad hitTest because it looks messy. Any help?


as for the objects, create an object then import to library, once you have done this you can drag as many objects as you like and just change the instance name. im not sure what you mean by the instance name, but to change it click the object then click on properties. as for the hitTest there will be many methods to make the script look neater, but at the minute im unsure what you can do in flash other than something like this.
if(player.hitTestObject(object) || player.hitTestObject(object2))
{
// do whatever
}

this is a simple or statement, just cleans it up all onto 1 line.
05-28-2014, 04:27 PM #3
<Bieber>
Climbing up the ladder
Tip #1 for Flash, don't use it. My high school instructor made us use Adobe Flash to design whole webpages.... =Z

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo