changing frame rate?

Game Editor comments and discussion.

changing frame rate?

Postby Oman » Sat Jun 30, 2007 3:22 pm

Hey everyone,

I was wondring if tere was a code to change the frame rate of an actors animation, in game.

Can i do that? If so how? If not, then its a future request.
"Beyond a wholesome discipline, be gentle with yourself." - Max Ehrmann
User avatar
Oman
 
Posts: 268
Joined: Tue Oct 31, 2006 4:00 am
Location: Somewhere out there...
Score: 6 Give a positive score

Postby Jay S. » Sat Jun 30, 2007 5:02 pm

I've been wondering that, myself... :(
User avatar
Jay S.
 
Posts: 118
Joined: Thu Apr 26, 2007 6:51 pm
Location: My computer desk. :P
Score: 9 Give a positive score

Postby metal_pt » Sat Jun 30, 2007 7:12 pm

What about creating a timer?
when timer ends change animation position.
you can set a variable named timeframe as an example.

On create object:
Code: Select all
CreateTimer("Event Actor", "aa", timeframe);


Then you create a "timer" event:
Code: Select all
animpos=animpos+1;


To get this to work you must change animation direction to "stopped" (I think).
]v[eta[_ - Using GE since June, 15 2007
Currently using v1.3.8 Registered
metal_pt
 
Posts: 117
Joined: Sat Jun 16, 2007 12:57 pm
Location: Sintra, Portugal
Score: 2 Give a positive score

Postby Oman » Sat Jun 30, 2007 9:20 pm

yes, but i wanted to do something like...

Code: Select all
framerate = xvelocity*20;


thats why i wanted to know :(
"Beyond a wholesome discipline, be gentle with yourself." - Max Ehrmann
User avatar
Oman
 
Posts: 268
Joined: Tue Oct 31, 2006 4:00 am
Location: Somewhere out there...
Score: 6 Give a positive score

Postby Rux » Sat Jun 30, 2007 9:52 pm

Mabey make several of the same animation with different frame rates, and when you want to change the framerate, change the animation to the desired frame rate.
I'm not good at coming up with signatures...
User avatar
Rux
 
Posts: 645
Joined: Sun Apr 29, 2007 9:26 pm
Location: Sitting on your moniter invisable.
Score: 35 Give a positive score

Postby Oman » Sat Jun 30, 2007 10:32 pm

i know... thats what i thought of.. but it's too much of a hassle :?
"Beyond a wholesome discipline, be gentle with yourself." - Max Ehrmann
User avatar
Oman
 
Posts: 268
Joined: Tue Oct 31, 2006 4:00 am
Location: Somewhere out there...
Score: 6 Give a positive score

Postby d-soldier » Sat Jun 30, 2007 10:43 pm

See the thing is, you can only slow down a framerate. As the program isn't calculating things faster then the "program framerate", it doesn't do anything to set them at a faster framerate. So copying your animation to different filenames, and then deleting every other one, and adding this as a new animation, is the way to make it quicker (looking at least)...
User avatar
d-soldier
 
Posts: 703
Joined: Sun Apr 08, 2007 2:13 am
Score: 61 Give a positive score

Postby Oman » Sun Jul 01, 2007 12:03 am

well, how do i slow it down Then?
"Beyond a wholesome discipline, be gentle with yourself." - Max Ehrmann
User avatar
Oman
 
Posts: 268
Joined: Tue Oct 31, 2006 4:00 am
Location: Somewhere out there...
Score: 6 Give a positive score

Postby d-soldier » Sun Jul 01, 2007 12:09 am

The same way, but instead of deleting frames, set the frame rate slower... It would be benefitial to have a function that adjusts framerates fo multiple animations (which are really the same images) are not required, adding to the file sizes...
User avatar
d-soldier
 
Posts: 703
Joined: Sun Apr 08, 2007 2:13 am
Score: 61 Give a positive score

Postby d-soldier » Sun Jul 01, 2007 12:10 am

The same way, execet instead of deleting frames, in the new animation, set the framerate slower... it really would be a good function to adjust animation framerates through scripting, so the filesizes are plugged with the same images multiple times for such things though,...
User avatar
d-soldier
 
Posts: 703
Joined: Sun Apr 08, 2007 2:13 am
Score: 61 Give a positive score

Postby Oman » Sun Jul 01, 2007 12:24 am

oh.. ok... yes.. then perhaps in the next version :D
"Beyond a wholesome discipline, be gentle with yourself." - Max Ehrmann
User avatar
Oman
 
Posts: 268
Joined: Tue Oct 31, 2006 4:00 am
Location: Somewhere out there...
Score: 6 Give a positive score


Return to GE - General

Who is online

Users browsing this forum: No registered users and 1 guest

cron