Gamestudio Links
Zorro Links
Newest Posts
AlpacaZorroPlugin v1.3.0 Released
by kzhao. 05/22/24 13:41
Free Live Data for Zorro with Paper Trading?
by AbrahamR. 05/18/24 13:28
Change chart colours
by 7th_zorro. 05/11/24 09:25
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (AndrewAMD, alibaba), 1,426 guests, and 9 spiders.
Key: Admin, Global Mod, Mod
Newest Members
AemStones, LucasJoshua, Baklazhan, Hanky27, firatv
19055 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
How to roll while pan #393489
02/03/12 23:14
02/03/12 23:14
Joined: Sep 2006
Posts: 292
M
Mythran Offline OP
Member
Mythran  Offline OP
Member
M

Joined: Sep 2006
Posts: 292
How do i make the player roll to a maxium of 20º while the player is panning? The player must also roll to the side the player is panning.

my.pan = ((1 - (SmoothSpeed / 25) * time_step) * (my.pan - camera.pan) + camera.pan); // This is the code used to pan the player.

Thanks.

Re: How to roll while pan [Re: Mythran] #393491
02/03/12 23:25
02/03/12 23:25
Joined: Oct 2004
Posts: 4,134
Netherlands
Joozey Offline
Expert
Joozey  Offline
Expert

Joined: Oct 2004
Posts: 4,134
Netherlands
You'll need to find the change in speed, not just the speed. If your speed changes, then you want to roll (I suppose).

my.roll = clamp( my.roll + changeOfSpeed * time_step, -20, 20 )


Click and join the 3dgs irc community!
Room: #3dgs

Moderated by  adoado, checkbutton, mk_1, Perro 

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