i have a player1 with a healthbar
i need player1 healthbar to decrease everytime player2 hits player 1
@danpost do you have a sample game for this? or can u make a multiplayer game where 2 players fight? please need a sample code for this
java.lang.IllegalStateException: Actor not in world. An attempt was made to use the actor's location while it is not in the world. Either it has not yet been inserted, or it has been removed.
at greenfoot.Actor.failIfNotInWorld(Actor.java:713)
at greenfoot.Actor.getOneIntersectingObject(Actor.java:964)
at slash2.handleCollisions(slash2.java:10)
at slash2.act(slash2.java:45)