Okay i used brets beercatch and another little shooter example i found on here to im trying to make clones of the orcs taht follow the cross bow/ when shot turn in to a red dot that fades away after a while. im uploading the graphics and game
not sure what your asking but it seems to me that you used the examples and put them together. Then you created new objects with names of your choice, but for the coding from the examples, you need to change the coding with the appropriate elements names you made.
My question is how should i code the orc so they follow the "hero" and die when shot by a bolt and i tried for hours to get the bolt to leave the cross bow on time but it never worked.
to make em follow run a script every frame saying...
if (hero.x<badguy.x){
badguy.x+=1
}
if (hero.x>badguy.x){
badguy.x-=1
}
if (hero.y<badguy.y){
badguy.y+=1
}
if (hero.y>badguy.y){
badguy.y-=1
}
if (hero.x==badguy.x){
badguy.x=hero.x
}
if (hero.y==badguy.y){
badguy.y=hero.y
}
urwelcome, its great to hear stuff like that. I have to say it was blanius and forumnewbie who helped me a lot and since blanius is gone I'm actually trying to become a moderator. Anyways I hope to release a huge amount of tutorials in awhile, unfourtunatly the other flash people have droped out for the site I'm working for so I'm forced to put in more time. I'll try to get something out soon though.