Solved

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

Posted on 2003-10-22
1
364 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
1 Comment
 
LVL 3

Accepted Solution

by:
applekanna earned 50 total points
Comment Utility
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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Suggested Solutions

Introduction Java can be integrated with native programs using an interface called JNI(Java Native Interface). Native programs are programs which can directly run on the processor. JNI is simply a naming and calling convention so that the JVM (Java…
In this post we will learn how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
Viewers will learn about if statements in Java and their use The if statement: The condition required to create an if statement: Variations of if statements: An example using if statements:
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …

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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now