Gamestudio Links
Zorro Links
Newest Posts
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
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
4 registered members (degenerate_762, AbrahamR, AndrewAMD, ozgur), 667 guests, and 8 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Hanky27, firatv, wandaluciaia, Mega_Rod, EternallyCurious
19051 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 2 of 2 1 2
Re: recharging code...many uses... [Re: mpdeveloper_B] #73559
06/29/06 03:13
06/29/06 03:13
Joined: Jun 2005
Posts: 1,001
Pennsylvania, USA
FoxZero Offline
Serious User
FoxZero  Offline
Serious User

Joined: Jun 2005
Posts: 1,001
Pennsylvania, USA
I could use this for my movement code. I'll try to incorperate it when I get the chance.

Thanks man! I really did need something like this. I'm a newb to C-Script and I can't figure out how to get Tomb Raider III style sprinting to work.


Check out my site http://foxzero.net
My band's website
http://wolf-hybrid.net

R.I.P. Dave Williams
Re: recharging code...many uses... [Re: FoxZero] #73560
06/30/06 21:23
06/30/06 21:23
Joined: Jul 2005
Posts: 473
San Diego, CA
S
spartan131 Offline
Senior Member
spartan131  Offline
Senior Member
S

Joined: Jul 2005
Posts: 473
San Diego, CA
can you make a demo for it so i can see how it works on the script editor and also in the game?

Re: recharging code...many uses... [Re: spartan131] #73561
07/04/06 03:32
07/04/06 03:32
Joined: Feb 2006
Posts: 2,185
mpdeveloper_B Offline OP
Expert
mpdeveloper_B  Offline OP
Expert

Joined: Feb 2006
Posts: 2,185
i will tomorrow, k


- aka Manslayer101
Re: recharging code...many uses... [Re: mpdeveloper_B] #73562
07/18/06 16:52
07/18/06 16:52
Joined: Feb 2006
Posts: 2,185
mpdeveloper_B Offline OP
Expert
mpdeveloper_B  Offline OP
Expert

Joined: Feb 2006
Posts: 2,185
okay the file is now on FilePlanet, here you go:

Energy Recharge Test

Last edited by Manslayer101; 07/18/06 17:29.

- aka Manslayer101
Re: recharging code...many uses... [Re: mpdeveloper_B] #73563
05/13/07 21:34
05/13/07 21:34
Joined: Jan 2003
Posts: 4,615
Cambridge
Joey Offline
Expert
Joey  Offline
Expert

Joined: Jan 2003
Posts: 4,615
Cambridge
old thread? doesn't matter... i saw this in the call for goodies section, so it might be still interesting. why don't you make some kind of function instead of the numberous if-clauses?

energy = min(100, max(0, energy*(1+0.1*(use_energy==0)) ));

should do the job faster.

Re: recharging code...many uses... [Re: Joey] #73564
05/14/07 01:39
05/14/07 01:39
Joined: Mar 2006
Posts: 2,503
SC, United States
xXxGuitar511 Offline
Expert
xXxGuitar511  Offline
Expert

Joined: Mar 2006
Posts: 2,503
SC, United States
energy = clamp(energy*(1+0.1*(use_energy==0)) , 0, 100);


xXxGuitar511
- Programmer
Re: recharging code...many uses... [Re: xXxGuitar511] #73565
05/14/07 19:31
05/14/07 19:31
Joined: Jan 2003
Posts: 4,615
Cambridge
Joey Offline
Expert
Joey  Offline
Expert

Joined: Jan 2003
Posts: 4,615
Cambridge
i love clamp now

Re: recharging code...many uses... [Re: Joey] #73566
05/15/07 13:20
05/15/07 13:20
Joined: Feb 2006
Posts: 2,185
mpdeveloper_B Offline OP
Expert
mpdeveloper_B  Offline OP
Expert

Joined: Feb 2006
Posts: 2,185
this was also one of the first codes i had written, now it could be improved


- aka Manslayer101
Page 2 of 2 1 2

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