Pages: 1
Topic closed
I need help! with CPU in a fighting game
Offline
isabela_taffy wrote:
I need help! with CPU in a fighting game
I suggest posting stuff like this in the 'all about scratch' forum next time, not the 'advanced topics' forum, as it isn't really advanced in this sense, as it has nothing to do with modding scratch.
Offline
gbear605 wrote:
isabela_taffy wrote:
I need help! with CPU in a fighting game
I suggest posting stuff like this in the 'all about scratch' forum next time, not the 'advanced topics' forum, as it isn't really advanced in this sense, as it has nothing to do with modding scratch.
While Advanced Topics is often used for Scratch Mods...it can also be used for advanced topics in Scratch as well. But I agree that the topic is more likely to get help in All About Scratch, so I'll move it there.
Offline
Try and use your common sense in the AI
For a turn-based game: If the AI is low on health, it should activate a healing move. If you have buffs up, the AI should try to dispel them or buff itself. If it's not low on health and buffs are well managed, it should attack.
For a simple fighting game (where both enemies fight at the same time), just try and make it perform some random attacks whenever the player gets too close. If the player runs away, either make the AI wait or chase him or her.
Those are just some guidelines though
Last edited by Jonathanpb (2011-05-14 20:42:35)
Offline
A basic AI script is to have it point towards the Player and start shooting in the direction the player is going, or for a zombie it moves towards the player. But if you want it to be strategic, you will have to code a few more things ( like dodges bullets, etc ). But that can get really complicated, which I suggest with the basics then continue to code each movement, attack, etc.
Offline
Topic closed
Pages: 1