Up next we are going to create our sister’s AI
Character AI means how the character will act and move throughout a game.
Create a function called ‘princess AI.
Add a new sprite into the function and create a new variable called ‘Princess’.
Select the 2nd princess art from the sprite gallery.
The last step is to change the Princess’ kind from player to sister ( You will have to create a new kind type).
Next we are going to set up the princess’ position and movement.
We are going to position her at the bottom of the screen,give her only a vx (Left/Right) movement, and allow her to bounce off the walls.
Make sure to set all your variables to ‘Princess’ .
Add the ‘call princessAI’ function to your start block.