Answer the question
In order to leave comments, you need to log in
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
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.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question