Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Newcomers DBPro Corner / help with AI shooting and AI health

Author
Message
Fa1con
17
Years of Service
User Offline
Joined: 20th Aug 2007
Location:
Posted: 21st Aug 2007 05:40
Hey for the last day i have been making a simple 2d flying game(like aegis wing) and i understand the lanaguage. i have everything working but i was just wondering if anybody could help me with a few codes.

one problem im having is how do i get one of my enemy sprites to shoot back at me(sprite im controlling)

And another problem is how do i get the AI Sprite to have health and not just die first hit.

if anybody could help me with the codes or maybe give me a code snippet that would be really helpful. thanks
Guyra
19
Years of Service
User Offline
Joined: 10th Nov 2005
Location: Norway
Posted: 21st Aug 2007 19:58 Edited at: 21st Aug 2007 20:02
I'm no wiz with 2D, but considering enemy health you could do something like this:

Pseudo code:

Login to post a reply

Server time is: 2024-11-26 11:27:01
Your offset time is: 2024-11-26 11:27:01