• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Boolean Issues

New Here ,
Apr 07, 2011 Apr 07, 2011

Copy link to clipboard

Copied

Hi, I'm having an issue with my code as I need to change part of it into a list of boolean true or false statements.

The Problem area of the code that I've been told needs the boolean is the boxed in section (in red - sorry about the big image).

Basically they all trigger a Hit Area/animation. However only the bottom one in the code actually works due to the way it's been written. I just have absolutley no clue how to put a boolean insteaf of the "if" statements and how it would be worded.

I was also told to follow this kind of flow chart (which i'm also having difficulty making sense of) so if anyone has any suggestions or could offer any advice I would greatly appreciate it.

Flow Chart (please forgive the bad use of punctuation):

              Hit something = "movement" (my default animation)

            /                                     |

String Var                                    |

                                 Go through list of hit areas                           

                                                  |                                          

                                      Did it hit "This one"? (example)           

                                    /                                 |        |  Ignore & go back  

                               Yes                                No -----| 

                               /

                     Hit Something = "frame Label" or "Name of thing/animation"

The Code:

(Thankyou anybody willing to put aside their time to try and help me with this/simply reading all of this)

ProblemArea.jpg

TOPICS
ActionScript

Views

283

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Apr 07, 2011 Apr 07, 2011

Copy link to clipboard

Copied

I personally cannot see a thing in the image. Why not to just post the code (preferably using code highlight feature).

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Apr 07, 2011 Apr 07, 2011

Copy link to clipboard

Copied

LATEST

Hi, yeah sorry about that I didn't notice the image had been compressed - I had put the code in an image to save time typing it all out (because I'm new on here and can't seem to paste text) I'll type the code out soon.

Again, apologies and thankyou for pointing it out.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines