Reputation: 11
althuogh i definition to corecce create and movement for enemies at game but it dont show enemies and but if it show the enemies but enemies dont movement what do i should enemies make movement at game What can I do to make enemies move in the game?
enemies = []
for i in range(4):
# Create an instance of the enemy character
enemy = FrameAnimation3d(
'ArtStation - Stylized Anatomy BASEMESHESo/3D Model character Ghoul.obj',
fps=10,
scale=(0.02, 0.02, 0.02),
position=(0, -4),
texture = 'Jowhareh_galleries_7_poster_0c03a8fa-b5b4-4815-9a32-bc830b07ff58.png'
)
# Create an asobject entity as a child of the enemy entity
asobject = Entity(
model = 'ArtStation - Stylized Anatomy BASEMESHESo/3D Model character Ghoul.obj',
parent=enemy,
texture = 'Jowhareh_galleries_7_poster_0c03a8fa-b5b4-4815-9a32-bc830b07ff58.png',
scale=(0.02, 0.02, 0.02),
# position=(0, -4),
Upvotes: 0
Views: 29
Reputation: 31
You need to have the movement in an update function that will constantly update the position of the entities. You can update its X/Y/Z position or you can do some math and have the entities creep up to the player or whatever you need to do.
Look up some ways of movement logic for entities on google or something and watch tutorials on how it works.
If you need more help, and considerably faster results, join the discord. https://discord.gg/Rh7Xfd98BU
Upvotes: 0