Click, Drag and Throw objects?

4 views
Skip to first unread message

IAmNeo

unread,
May 23, 2008, 1:22:51 PM5/23/08
to APE General
Anyone tried this yet? I haven't been able to find any demos showing
the ability to do this.

Klaus int. a

unread,
May 23, 2008, 2:58:15 PM5/23/08
to APE General
Would also like to know... :)

Frédéric Gascon

unread,
May 24, 2008, 5:25:02 PM5/24/08
to APE General
I added two classes in the group's files. They handle the particle's
dragging and throwing. You use them the same way as the CircleParticle
and the RectangleParticle except that you write DragableCircleParticle
and DragableRectangleParticle. I wrote comments in the files so it
should be easy to understand how it works.

You can find them here:
http://groups.google.com/group/ape-general/web/dragable_particles.zip

If you have any question post back.

Klaus int. a

unread,
May 24, 2008, 6:23:13 PM5/24/08
to APE General
Thank you very much for those 2 classes Frédéric - seems it is just
what I need. Dont know excactly how to use them... How do I
instanciate these classes from another class. I am still very new to
the OOP-concept, so my method for using APE untill now has been to
include the folder(s) lib/org/cove/ape in every project I make. There
might be a more clever way to do it. I havent used the version alpha
0.45 thjats on www.cove.org/ape, but the code uploded with the basic
examples uploaded by Andrew Garrahan as I understand they have more
advanced collision. Thanlk you for any help provided :)

Regards Klaus
> > > the ability to do this.- Skjul tekst i anførselstegn -
>
> - Vis tekst i anførselstegn -

Klaus int. a

unread,
May 24, 2008, 6:41:48 PM5/24/08
to APE General
Well just got it... if anyone should posess my level of ignorance I
simply copy/pasted the 2 classes into org/cove/ape folder...

Thanks again Frédéric

On 24 Maj, 23:25, Frédéric Gascon <frederic.gas...@gmail.com> wrote:

Klaus int. a

unread,
Jun 4, 2008, 10:25:53 AM6/4/08
to APE General
Have made a StickyClick version of your DragableCircleParticle Class
Frédéric...It is basically the same just with stickyclick (click to
drag click again to release) instead of normal drag/drop. StickyClick
is very useful when developing content for preschoolchildren. How/
where do I upload it?

Klaus

Klaus int. a

unread,
Jun 4, 2008, 10:37:47 AM6/4/08
to APE General
Uploaded StickyClickCircleParticle.as (have to learn to shoot before I
ask questions or... something)

davifontenele

unread,
Jun 26, 2008, 7:12:54 PM6/26/08
to APE General
Does It mean that I can make a class DragableSpringConstraint with
similar extensions?
Reply all
Reply to author
Forward
0 new messages