Gamestudio Links
Zorro Links
Newest Posts
Zorro version 3.0 prerelease!
by Grant. 02/24/26 22:21
WFO Training with parallel cores Zorro64
by Martin_HH. 02/24/26 19:51
ZorroGPT
by TipmyPip. 02/23/26 21:52
Camera always moves upwards?
by clonman. 02/21/26 09:29
Sam Foster Sound | Experienced Game Composer for Hire
by titanicpiano14. 02/19/26 13:22
AUM Magazine
Latest Screens
Dorifto samurai
Shadow 2
Rocker`s Revenge
Stug 3 Stormartillery
Who's Online Now
0 registered members (), 5,706 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
alx, ApprenticeInMuc, PatrickH90, USER0328, Sfrdragon
19199 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"...
hopfel Offline
User
hopfel  Offline
User

Joined: Dec 2008
Posts: 605
47°19'02.40" N 8°32'54.67"...
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 | 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