Pages: 1
Topic closed
It is possible to program a computer-controlled opponent in Scratch. How it's programmed depends on the project you want to build (for example, if you're developing a two-player fighting game, you'll want the computer to control a player's attack moves).
You can try looking for computer-controlled opponents by punching in the word "AI" into the search box along with your other search terms.
Offline
Creating computer program is easy as long as you know how to use a programming language..
Offline
"AI" is short for Artificial Intelligence. Cheddargirl is suggesting that you search for projects with "AI" in their tags to get examples of how to do what you want. Getting a computer opponent to act "intelligent" can be tricky...
Offline
well... ive never done this before but i think it will work...
you change the opponents "thoughts" depending on what situation its in. like if it was low on hp and close to the player it would run away and heal
Offline
The most simple AI of all. Make a script that says, roughly:
Forever
Take one step toward player
When touching player
attack
Offline
Topic closed
Pages: 1