Gamestudio Links
Zorro Links
Newest Posts
Newbie Questions
by fairtrader. 12/06/23 11:29
Zorro Trader GPT
by TipmyPip. 12/04/23 11:34
Square root rule
by Smallz. 12/02/23 09:15
RTest not found error
by TipmyPip. 12/01/23 21:43
neural function for Python to [Train]
by TipmyPip. 12/01/23 14:47
Xor Memory Problem.
by TipmyPip. 11/28/23 14:23
Training with command line parameters
by TipmyPip. 11/26/23 08:42
Combine USD & BTC Pairs In Asset Loop
by TipmyPip. 11/26/23 08:30
AUM Magazine
Latest Screens
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Tactics of World War I
Who's Online Now
7 registered members (3run, miwok, AndrewAMD, Quad, TipmyPip, fairtrader, 1 invisible), 637 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Newest Members
fairtrader, hus, Vurtis, Harry5, KelvinC
19019 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
frame controlling is too fast. #4324
06/06/01 16:10
06/06/01 16:10

A
Anonymous OP
Unregistered
Anonymous OP
Unregistered
A



Hello Friends

I have done frame controlling It's happening no problem.but it is too fast.

action my_me_fight
{
MY.FRAME = 44;
WHILE (MY.FRAME < 93)
{
MY.FRAME += 1;
IF (MY.FRAME == 49)
{
if(enemy_present > 0)
{
if (vec_dist(soldier_y.x,my.x) < 85)
{
soldier_y._health -=1;
}
}
}
wait 1;
}
}


I have given this action to player when he fights here my attack frame starts from 44 and ends in 92.
but it is too fast when i press ctrl this action is been called. iwant this action should be slow.
I have even tried by giving less fps(frame per sec) in model editor. I have given as 1 to my model
then also it is too fast.

thanx
bye


Re: frame controlling is too fast. #4325
06/06/01 16:40
06/06/01 16:40

A
Anonymous OP
Unregistered
Anonymous OP
Unregistered
A



Hi Yogesh,

i would suggest to have a look at the template wdl files (i think its in the movement code). Look how conitec did the animation. It might get you started.

Ronny

------------------
To boldly animate, what no man has ever animated before

cybersorcerer.de


Re: frame controlling is too fast. #4326
06/06/01 16:45
06/06/01 16:45

A
Anonymous OP
Unregistered
Anonymous OP
Unregistered
A



Hi Yogesh,

i would suggest to have a look at the template wdl files (i think its in the movement code). Look how conitec did the animation. It might get you started.

Ronny

------------------
To boldly animate, what no man has ever animated before

cybersorcerer.de


Re: frame controlling is too fast. #4327
06/06/01 18:01
06/06/01 18:01

A
Anonymous OP
Unregistered
Anonymous OP
Unregistered
A



What you should do if you want the animation to go slower is just incriment it by a smaller number, instead of adding 1 to the frame add .5 which will have the animation go twice as slow, you can do any decimal of a frame because the engine will genorate an image inbetween the frames.
-matt

Re: frame controlling is too fast. #4328
06/06/01 21:48
06/06/01 21:48
Joined: Jul 2000
Posts: 2,037
Lafayette, LA USA
J
James Snydstrup Offline
Senior Expert
James Snydstrup  Offline
Senior Expert
J

Joined: Jul 2000
Posts: 2,037
Lafayette, LA USA
yogesh:

Try incrementing useing TIME.


Re: frame controlling is too fast. #4329
06/07/01 05:39
06/07/01 05:39

A
Anonymous OP
Unregistered
Anonymous OP
Unregistered
A



Try something like this:

my.frame += 5 * time;



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