superflyninja wrote:@shabby Got anything in mind?
Yup making games is fun but such a massive field.....and so mentally intensive, not just coding wise but keeping up motivation,discipline etc. What is youze guys favourite things to do?
ShabbyMcCrabby wrote:I feel like even with nothing else but the basic thing it should feel fun. Like with foreveracers where just driving is fun even without the races and stuff.
superflyninja wrote:I added ricochet to the top down shooter project
Ah I get what you mean, its not quite what I'm planning though.ShabbyMcCrabby wrote:So different actions for different enemies but based off the same function call? Would overriding the action function of the base enemy class for each specific enemy do the trick? That's what I usually do. There's also things like function pointers which may be useful too.
I left out that bit for brevity I would have( and do currently) have a condition in there to only check to perform action if in a state to allow it.RamSteelwood wrote:i know it's just your pseudo code there, but you might want the 'chooseaction' bit either firing intermittently in an ienumerator or summat, or after the previous action completes. doing it in update like that would have it choosing an action every frame which would be too quick for humans to deal with.
It looks like you're new here. If you want to get involved, click one of these buttons!