Sign In Start Free Trial
Account

Add to playlist

Create a Playlist

Modal Close icon
You need to login to use this feature.
  • Book Overview & Buying Creative Greenfoot: RAW
  • Table Of Contents Toc
Creative Greenfoot: RAW

Creative Greenfoot: RAW

By : Haungs
4.7 (3)
close
close
Creative Greenfoot: RAW

Creative Greenfoot: RAW

4.7 (3)
By: Haungs

Overview of this book

This book is for coding students and Java programmers of all levels interested in building engaging, interactive applications with Greenfoot. Familiarity with the very basics of Greenfoot is assumed.
Table of Contents (12 chapters)
close
close
11
Index

Chapter 2. Animation

 

"Study without desire spoils the memory, and it retains nothing that it takes in."

 
 --Leonardo da Vinci

It is fairly simple to move actors around in Greenfoot scenarios by handling keyboard or mouse events and using setLocation() appropriately. However, we can do better. By animating our actors further, we can breath life into them. We can give our players/users the illusion of a vibrant, living world.

In essence, programming animation is the art of illusion. By adding small movements or image changes at the right time, we beguile our users into believing our creations are more than just static pixels on a screen. In this chapter, you will learn the following techniques for animating Greenfoot actors:

  • Image swapping and movement
  • Timing and synchronization
  • Easing

Greenfoot is a wonderful platform for creating interactive and engaging applications that you can share on the Internet or use as a desktop application. It is your desire to create...

Visually different images
CONTINUE READING
83
Tech Concepts
36
Programming languages
73
Tech Tools
Icon Unlimited access to the largest independent learning library in tech of over 8,000 expert-authored tech books and videos.
Icon Innovative learning tools, including AI book assistants, code context explainers, and text-to-speech.
Icon 50+ new titles added per month and exclusive early access to books as they are being written.
Creative Greenfoot: RAW
notes
bookmark Notes and Bookmarks search Search in title playlist Add to playlist font-size Font size

Change the font size

margin-width Margin width

Change margin width

day-mode Day/Sepia/Night Modes

Change background colour

Close icon Search
Country selected

Close icon Your notes and bookmarks

Confirmation

Modal Close icon
claim successful

Buy this book with your credits?

Modal Close icon
Are you sure you want to buy this book with one of your credits?
Close
YES, BUY

Submit Your Feedback

Modal Close icon
Modal Close icon
Modal Close icon