How to hide/show images?

9 views
Skip to first unread message

Johnny M.

unread,
Mar 1, 2011, 9:35:40 PM3/1/11
to ruby4kids
I'm creating a simple game where a soldier must dodge falling
grenades. I have everything setup as shown on the screencasts (minus
the second and third balls), and I need to know how to set it up to
where when I press one key, everything stops (i can do that), and it
shows an image (Like a pause menu), then when I press it again
everything goes back to normal.

Help?

Alberto Morales

unread,
Mar 1, 2011, 11:56:49 PM3/1/11
to ruby...@googlegroups.com
This is a good question and one we did not have a screencast for, so I added one.

Enjoy!

http://ruby4kids.com/ruby4kids/videos/pause_game.mov

Alberto.

Jonathan McNeil

unread,
Mar 2, 2011, 7:53:02 PM3/2/11
to ruby...@googlegroups.com
Thank you! It worked perfectly for me.
Reply all
Reply to author
Forward
0 new messages