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

2013/8/7

Can you make a Character Selection screen and have a unlock system for changing your char to a new one after you unlock it

Kage Kage

2013/8/7

#
Can you do what I said above please help!
danpost danpost

2013/8/7

#
All you need for an unlock system is a button to click on or a specific keystroke to be detected; after which a separate world is started for character selection. You will need to pass the player whose character is to change to this selector world. For example 'Greenfoot.setWorld(new CharSelect(this));' from the player class. Then, receive the actor in the CharSelect world with 'public CharSelect(Actor actor)' as the constructor declaration. Now, you can use 'actor.setImage("...");' to change the image and close the selection world out with 'Greenfoot.setWorld(actor.getWorld());'.
Kage Kage

2013/8/7

#
Im just starting in Greenfoot :|
K_wow K_wow

2013/8/7

#
Hi there, Kage! Greenfoot is not a program that allows for instant games just the way you want them. To properly utilize Greenfoot, you need a decent knowledge of programming in java.
danpost danpost

2013/8/7

#
Are you saying that what I gave was too advanced for you; or just making a comment? If the former, then do what you can; and if having specific problems, post again with tried code and what you need improved.
danpost danpost

2013/8/7

#
Are you familiar with java coding at all? Have you downloaded the Greenfoot application? Have you looked over any of the sample scenarios and their related code?
Kage Kage

2013/8/7

#
I downloaded green foot :/
You need to login to post a reply.