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

need help desperately... ;-;

Guest
Jul 28, 2013 Jul 28, 2013

Guys i need help, im rubbish at actionscript, depending on what it is...but right now im really struggling to do this work. I only have week to finish it and I just dont know how. Honestly if you guys are willing to help, i will literally love you....FOREVER!! D:!!!

http://www.filedropper.com/pacmanscripting

the link above leads to the file, just download that.

1) When you click on the "Generate" button a 15x21 board of Tile symbols is created, with top-left corner at (10,10). Initially all tiles should be blank.

2) Extend the functionality behind the "Generate" button so that a random configuration of walls appears - 100 of the tiles should now be "filled". Each time you click on "Generate" there should be a different configuration. Hint: create a map array initially consisting of 0's. Generate should randomly produce 100 pairs of (row, column) values where you set the value in the map array to 1. Use the map array to display the board.

3) Extend the "Generate" functionality even further. You should include in the application 4 instances of the Ghost symbol and one instance of the MyPac symbol. When you click on the "Generate" button, the ghosts should appear in each corner of the board, and the myPac should be in row 8, col 11 of the board. "Generate" should still produce a random configuration of 100 filled cells each time it is clicked, but the ghosts and myPac should always appear in the prescribed positions.

4) Finally, you should animate the ghosts and add key-handling for the myPac symbol. The ghosts should "patrol" the board ie they can move randomly in the array but cannot go through "walls" or myPac. The starting fla includes some code you might find useful for this part of the assignment. myPac should move with arrow-key presses, but also cannot go through walls or ghosts

i cant do the first 3 parts....part 4 shouldnt be too hard though 😕

guys if you can please help in any way.

thanks in advance.

TOPICS
ActionScript
760
Translate
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
Community Expert ,
Jul 28, 2013 Jul 28, 2013

you're a lot less likely to get help if you require files to be downloaded and a lot more likely to get help if you can explain your problem succinctly.

Translate
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
Guest
Jul 28, 2013 Jul 28, 2013

okay so i have more information about the problems im having...

the errors im getting are call to an unidentified "call to a possibly undefined method initmap"

"access of undefined property map"

and "access of undefined property tiles"

Translate
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
Community Expert ,
Jul 28, 2013 Jul 28, 2013

click file>publish settings>swf and tick "permit debugging".

each of those error messages will contain a line number indicating the problematic line(s) of code.

fix them one-at-a-time. 

the first error, initmap indicates you have no such function defined in the scope of the function call when that line of code executes.

the second and third indicate you have no variables (map and tiles) defined in the scope of the references when those lines of code execute.

Translate
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
Guest
Jul 28, 2013 Jul 28, 2013

Ok, i guess I will try to get the 1st error out of the way, which shouldnt be too hard...but since im a noob at this its going to take time 😕

thanks for your help !!

Translate
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
Community Expert ,
Jul 28, 2013 Jul 28, 2013
LATEST

it should be quick and easy once you find the line with the error.  usually, there's a typo or a total blunder.

Translate
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