Gridden
03-02-2009, 07:31 PM
Hey guys, im new to AC, so i tought id ask here for some help. Please keep in mind that this is my first piece of code ever, so excuse me if its bad.
First off, here is the .fla file for my upcoming project.
Now for the problems.
1) As you can see when testing the movie, there is a small delay from when the character initially moves. It is smooth after.
2) This isnt really a problem with the code, but i have some questions about the AI i will use for the enemies. Here is what i was planning to do. Enemies come from the edge of the screem, then i compare the x and y axis of the main character with that of the enemy, and subtract them by a loop to get them to move towards the character. For hitting them, i would compare the x and y axis again and check if the gab is small enaugh, the enemy would play the animation for getting hit and the variable for his health points would decrease.
How would you think these would work?
Thanks a lot for reading and looking forward for some replies :).
Whoops, forgot to link the .fla.
Here it is: http://www.mediafire.com/?sharekey=66d94b8de69415fce62ea590dc5e5dbbe04e75f6 e8ebb871
First off, here is the .fla file for my upcoming project.
Now for the problems.
1) As you can see when testing the movie, there is a small delay from when the character initially moves. It is smooth after.
2) This isnt really a problem with the code, but i have some questions about the AI i will use for the enemies. Here is what i was planning to do. Enemies come from the edge of the screem, then i compare the x and y axis of the main character with that of the enemy, and subtract them by a loop to get them to move towards the character. For hitting them, i would compare the x and y axis again and check if the gab is small enaugh, the enemy would play the animation for getting hit and the variable for his health points would decrease.
How would you think these would work?
Thanks a lot for reading and looking forward for some replies :).
Whoops, forgot to link the .fla.
Here it is: http://www.mediafire.com/?sharekey=66d94b8de69415fce62ea590dc5e5dbbe04e75f6 e8ebb871