View Full Version : snake game help
Phantom_Lord
July 28th, 2004, 08:10 PM
i've got a problem in developin this game... i use duplicateMovieClip to add parts of the body, but i dont know how to have them following each other... (i used expressions like _root.eval("body"+k)._x, but it didnt work :crazy: :crazy: :crazy: )
thanks
McGiver
July 28th, 2004, 08:25 PM
again:
there is no
_root.eval("body"+k)._x //returns undefined
the eval function won't work as a prototype. it will only work as a function:
eval("body"+k)._x
if you want to use a path in front of a variable mc use
_root["body"+k]._x //with no dot in front of the []
or put the path inside the eval statement (thats what it was buit for)
eval("_root.body"+k)._x
Phantom_Lord
July 30th, 2004, 02:53 PM
thanks a lot!! good footer :D
MilkMonkey
July 30th, 2004, 06:57 PM
yes very nice footer. Did you make it?
Powered by vBulletin® Version 4.1.10 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.