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

2014/11/30

Help with this game...

DesignerOrb362 DesignerOrb362

2014/11/30

#
Hi, here's the deal, every "discussion" I've found loses me every time I read them, can someone write up a code for me to copy, i'm trying to make a game with an actor called "rocket" (a rocketship sprite, the playable character) who collects 15 actors called "mushroom" in a world called "CubeCollectorWorld" with enemies called "beeEnemy" who make the "rocket" disappear an touch, my problems are that I want to be able to have a counter for every time I pick up a mushroom and a winners screen (a world called "winner") appear when all 15 are collected and for the "rocket" to explode for about 5 seconds until the world I called "loser" pops up, I have the ability to control the rocket, the ability for the rocket to cause the mushrooms to disappear once flown over them and the ability for the bees to fly around and cause you to disappear once its made contact with you, i need help with the winner/loser screen, the exploding and the scoreboard, can anyone help?
danpost danpost

2014/12/1

#
My suggestion is to work on one thing at a time. Try to create the code necessary. If you then run into difficulties, post what you are trying to do, supply the code you tried and how it is not doing what you want. If you are getting any error messages or copy/paste them in their entirety.
DesignerOrb362 DesignerOrb362

2014/12/1

#
okay, starting with one thing, how can i make an actor explode when making contact with another actor, and when the explosion is completed, switch to a different world.
DesignerOrb362 DesignerOrb362

2014/12/1

#
i tried copying the lunar lander scenario but i didn't understand it
danpost danpost

2014/12/1

#
The Explosion class of the lunar lander scenario is quite portable. You only need add the class to your project and create a new Explosion object when needed. You will need the 'explosion.png' image added to your 'images' folder of the scenario as well.
You need to login to post a reply.