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

2016/2/24

start menu with movement ?

chamot chamot

2016/2/24

#
its possible to make a start menu with movement using sprites or something like that ?
danpost danpost

2016/2/24

#
chamot wrote...
its possible to make a start menu with movement using sprites or something like that ?
Yes, it is possible -- and why not! Aside from hardware limitations, you can do just about anything visually, interactively, and audibly.
chamot chamot

2016/2/27

#
you know any way?
danpost danpost

2016/2/27

#
One way is to provide different implementations for your actors depending on the world they are in:
1
2
3
4
5
6
7
8
if (getWorld() instanceof StartMenu)
{
    // whatever
}
else // if (getWorld() instanceof GameWorld)
{
    // something else
}
This format can be used in the act method of your actor classes to do just that.
You need to login to post a reply.