View Single Post
Old
x2495iiii
Super Moderator
 
x2495iiii's Avatar
 
Status: Offline
Posts: 3,508
Join Date: Dec 2008
Location: Somewhere in the Continental U.S.
Default 11-29-2012, 09:47 PM

All those problems can be fixed, but it's somewhat complicated.

1. AI for mobs can be done with well-coded methods and the use of parameters, though you'll still need an event for every enemy you add (to support simultaneous execution). This can be simplified by attaching the event to the object itself, then when the event is complete, duplicating the object, which will duplicate the event as well.

2. Either the collision checker isn't run enough times, or the threshhold is too small. First, make sure the collision method is run constantly, as long as the bullet is in play, then try making the number larger. be careful, as larger numbers mean a greater chance for a hit registered for near misses.

3. My old RP4 prototype had an example of individual damage values for similar enemies. Subparts included, even.

4. Same as the first: parameters for identical objects. As long as each enemy is a duplicate of the same object (e.g. a horde of zombies that are all duplicates of the zombie object), they can all be passed in as object parameters to a method that deals with them all individually, but can deal with them all simultaneously and uniformly as needed. In fact, if the actions are simple enough (e.g. disappear, move forward, spin around), the objects don't even have to be duplicates.

Clear as mud, right?


(')>
   
Reply With Quote