This site requires JavaScript, please enable it in your browser!
Greenfoot back
joseph.volfman
joseph.volfman wrote ...

2017/5/23

PowerUp Bar

joseph.volfman joseph.volfman

2017/5/23

#
Hi, How would I code something in green foot so that first, a power bar would show up on screen and once a laser hits an object in the game the power bar increases?
Super_Hippo Super_Hippo

2017/5/23

#
Add a power bar to the world, save a reference in the world. Whenever something is hit, use that reference to call a method on the power bar which changes a value in it (which then changes the image of the power bar).
You need to login to post a reply.