Spawn creatures at spawnpoint created from code #707
Replies: 2 comments
-
This post has been migrated automatically from the old LITIENGINE forum (2018 - 2022). powerupSpawn.setDirection(Direction.DOWN); (or some other direction), before calling the |
Beta Was this translation helpful? Give feedback.
-
This post has been migrated automatically from the old LITIENGINE forum (2018 - 2022). |
Beta Was this translation helpful? Give feedback.
-
This post has been migrated automatically from the old LITIENGINE forum (2018 - 2022).
Posted: 2020-02-05 12:46:37
User: YannikSchoeberl [] (age: 1004 days 🙌; posts: 14)
Currently I'm trying to spawn some powerups in my game. If the ball collides with a block, the following code is executed:
Here's my class Powerup:
I'm getting the following exception:
[upl-image-preview url=https://forum.litiengine.com/assets/files/2020-02-05/1580906774-709305-exception.jpeg]
What am I missing?
Beta Was this translation helpful? Give feedback.
All reactions