Slick Forums

Discuss the Slick 2D Library
It is currently Wed Jul 26, 2017 10:39 am

All times are UTC




Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: Problem with fizzy
PostPosted: Tue Aug 14, 2012 3:49 pm 
Offline

Joined: Tue Aug 14, 2012 3:30 pm
Posts: 4
I decided I wanted to use fizzy in my game, so I went to the manual/wiki (http://slick.cokeandcode.com/wiki/doku.php?id=fizzy), where it said to download to Fizzy and jBox2d. I installed it by
adding the four jars under /jbox2d-2.1.2.1/jbox2d-library/target and fizzy.jar to my project. That is the right way to install it right?

The problem is when I try to add a new body to the world.
I write.
Code:
Shape rectangle=new Rectangle(50,50);
rectangle.setOffset(0,0,0);


but the rectangle class does not have the setOffset-method;

Also when i try:
Code:
Body newBody = new Body(rectangle, x, y, true);

it gives me an error!

I am sure that i imported from fizzy:

Quote:
import org.newdawn.fizzy.Body;
import org.newdawn.fizzy.Rectangle;
import org.newdawn.fizzy.Shape;
import org.newdawn.fizzy.World;
import org.newdawn.slick.state.*;


This is probably a noobish but i dont understad....


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group