Questions tagged [greenfoot-engine]

Greenfoot is a 2D engine based in Java that's uses a hybrid code/graphical style for teaching programming and how to make games.

Filter by
Sorted by
Tagged with
0
votes
1answer
65 views

How can I add a delay to my enemy spawning in Greenfoot?

How can I add a delay between spawning my enemies in Greenfoot? I'm doing it from a class that is neither a world nor an actor, its made totally by me. I need to it spawn 3 enemies, 3 times, with a 1-...
1
vote
1answer
154 views

An algorithm to make one object follow another on a 2D grid

I am using Greenfoot, but this can apply to pretty much any 2D engine. So my question is a basic one that I somehow couldn't find an answer to already. Basically, if I have an enemy and the player, ...
0
votes
1answer
799 views

Greenfoot java.lang.IndexOutOfBoundsException: Index: 0, Size: 0

When an enemy comes into contact with the hero the hero class is supposed to remove the enemy class with the same X and Y. It works the first time but throws an error immediately after that: java....