Gamestudio Links
Zorro Links
Newest Posts
loading historical data 1st time
by AndrewAMD. 04/14/23 12:54
Trade at bar open
by juanex. 04/13/23 19:43
Bug in Highpass2 filter
by rki. 04/13/23 09:54
Adding Limit Orders For IB
by scatters. 04/11/23 16:16
FisherN
by rki. 04/11/23 08:38
AUM Magazine
Latest Screens
SHADOW (2014)
DEAD TASTE
Tactics of World War I
Hecknex World
Who's Online Now
4 registered members (AndrewAMD, fogman, Grant, juanex), 972 guests, and 7 spiders.
Key: Admin, Global Mod, Mod
Newest Members
rki, FranzIII, indonesiae, The_Judge, storrealba
18919 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Swing #277888
07/11/09 10:01
07/11/09 10:01
Joined: Jan 2009
Posts: 12
R
Ridemaker1124 Offline OP
Newbie
Ridemaker1124  Offline OP
Newbie
R

Joined: Jan 2009
Posts: 12
Hi,
I was trying to get the hang of a swing type movement. I'm making a game of this http://www.youtube.com/watch?v=tE3xO17VaSc&feature=related . Anyone interested in taking part in this project is welcome.
Regards

Re: Swing [Re: Ridemaker1124] #277979
07/11/09 18:39
07/11/09 18:39
Joined: May 2009
Posts: 258
Chicago
J
Jaeger Offline
Member
Jaeger  Offline
Member
J

Joined: May 2009
Posts: 258
Chicago
How are you going to make that into a game? I don't see what you could do other than just watch it. If that's the case, you should just use some animation and camera movement. No need for physics. But maybe I'm wrong. It would help people give better answers if you give a detailed explanation of what you're trying to do with the concept.

Re: Swing [Re: Jaeger] #278004
07/11/09 20:02
07/11/09 20:02
Joined: Jan 2009
Posts: 12
R
Ridemaker1124 Offline OP
Newbie
Ridemaker1124  Offline OP
Newbie
R

Joined: Jan 2009
Posts: 12
Basically, If you press ,lets say for example, Q then that changes the speed of the arm swings. If you press A it slows down and so on.
regards

Last edited by Ridemaker1124; 07/11/09 20:02.
Re: Swing [Re: Ridemaker1124] #284408
08/13/09 09:20
08/13/09 09:20
Joined: Dec 2008
Posts: 605
47°19'02.40" N 8°32'54.67" E...
hopfel Offline
User
hopfel  Offline
User

Joined: Dec 2008
Posts: 605
47°19'02.40" N 8°32'54.67" E...
Don't use physcs. It's easier if you use anything how this:

var move=10;
var move2=0;
var move3=1;

function armswing()
{
me=arm;
while(1)
{
my.tilt+=move*time_step;

if(move2==0)
{move-=move3*time_step;
if(my.tilt<0)
move2=1;}

if(move2==1)
{move+=move3*time_step;
if(my.tilt>=0)
move2=0;}
if(move3>0.01)
move3-=0.1*time_step;
wait(1);
}}

Now the arm swings further and further. (not tested)

Last edited by hopfel; 08/13/09 09:22.

Hilf mir, dir zu helfen!

Moderated by  HeelX, Spirit 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1