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

2017/4/26

How do I switch text with a button

cococypress21 cococypress21

2017/4/26

#
Hello, I am making a program with a lot of text. I know how to display text but cant seem to switch that text with another set of text. I bet there is a method built in to switch images but I can't seem to find it in the API. Thanks.
danpost danpost

2017/4/26

#
cococypress21 wrote...
Hello, I am making a program with a lot of text. I know how to display text but cant seem to switch that text with another set of text. I bet there is a method built in to switch images but I can't seem to find it in the API. Thanks.
The 'setImage' method sets the image of the actor to whatever desired image you have or make.
cococypress21 cococypress21

2017/4/26

#
Got it working, thank you.
You need to login to post a reply.