Solved

Java Animation - Can you "group" shapes from two classes?

Posted on 2003-10-22
1
381 Views
Last Modified: 2008-03-03
Hi there,

I'm doing a simple project where I need to create an animation.

I am trying to find out if its possible to "group" a set of (different) shapes within my animation, and then make all of them move together?
I want to group six shapes (three triangles and three circles) and make them all move together across the screen!!
(Basically I want to make a little character from simple shapes and make him move - but we've been told to only use simple script to create shapes to build our picture, so this means I can't just insert a gif!!)

Cheers in advance :)

LH

0
Comment
Question by:lucy_halton
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 3

Accepted Solution

by:
applekanna earned 50 total points
ID: 9596984
Check these out they have source code

http://www.javaranch.com/CodeBarn/BarnHelloAnimThreadFirst.jsp

http://www.javaranch.com/codebarn.jsp      and see under applets

example 4-8
http://www.oreilly.com/catalog/javanut/examples/

Does this help?
Cheers!
0

Featured Post

The Ultimate Checklist to Optimize Your Website

Websites are getting bigger and complicated by the day. Video, images, custom fonts are all great for showcasing your product/service. But the price to pay in terms of reduced page load times and ultimately, decreased sales, can lead to some difficult decisions about what to cut.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

For beginner Java programmers or at least those new to the Eclipse IDE, the following tutorial will show some (four) ways in which you can import your Java projects to your Eclipse workbench. Introduction While learning Java can be done with…
By the end of 1980s, object oriented programming using languages like C++, Simula69 and ObjectPascal gained momentum. It looked like programmers finally found the perfect language. C++ successfully combined the object oriented principles of Simula w…
Viewers learn how to read error messages and identify possible mistakes that could cause hours of frustration. Coding is as much about debugging your code as it is about writing it. Define Error Message: Line Numbers: Type of Error: Break Down…
Viewers will learn about the regular for loop in Java and how to use it. Definition: Break the for loop down into 3 parts: Syntax when using for loops: Example using a for loop:

728 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question