J
J
javascripter_Daniil2020-05-26 09:00:24
JavaScript
javascripter_Daniil, 2020-05-26 09:00:24

How to spawn creatures in javascript?

I am writing a game and it is necessary that mobs appear on the map, but they were not visible (but I can’t do either)

Answer the question

In order to leave comments, you need to log in

3 answer(s)
K
Karpion, 2020-05-26
@javascripter_Daniil

In order for a mob to appear, you need to create an appropriate object.
In order for the mob to be invisible, it should have. visibility attribute; more precisely, for all mobs d.b. such an attribute of type boolean. And the graphics engine should simply not draw those mobs that have visibility turned off.

D
Dmitry, 2020-05-26
@TrueBers

https://gameprogrammingpatterns.com/contents.html

G
Griboks, 2020-05-26
@Griboks

This is a very, very difficult task for you. First, understand what physics, graphics engines, colliders, meshes, textures, loops are.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question