Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Discussion / slow moition effect!!!

Author
Message
Shafan
21
Years of Service
User Offline
Joined: 22nd Dec 2003
Location: israel
Posted: 6th Jan 2004 18:14
how do i do a slow moition effect like in max payne or in Matrix...?
thanks!!!!!
BatVink
Moderator
22
Years of Service
User Offline
Joined: 4th Apr 2003
Location: Gods own County, UK
Posted: 6th Jan 2004 19:40
SYNC RATE 5 (!)

or factor all your movements by something less than 1.

BatVink (formerly StevieVee)
http://facepaint.me.uk/catalog/default.php
Shafan
21
Years of Service
User Offline
Joined: 22nd Dec 2003
Location: israel
Posted: 7th Jan 2004 10:34
bit this is not what i asked i want like in max payne or matrix that the slow moition is smooth.....
thanks anyway
M00NSHiNE
21
Years of Service
User Offline
Joined: 4th Aug 2003
Location: England, UK
Posted: 7th Jan 2004 10:50
Its in fact quite easy this. When you move your objects, have a speed variable, such as m#. In your movementy code have it say, for example:
xpos#=xpos#+(speed#*m#)

what you do is, when you want to make your characters etc move in slo motion you tll it in your loop that m#=0.25 or any number below 1, and when its normal speed, m#=1.0.

What this does is when you want slo mo it multiplies the speed variable by a half, quater or whatever amount and slows it down. Simple.

ZEDWARE website coming soon... //END TRANSMISSION//
BatVink
Moderator
22
Years of Service
User Offline
Joined: 4th Apr 2003
Location: Gods own County, UK
Posted: 7th Jan 2004 13:43
Quote: "that the slow moition is smooth"


Quote: "or factor all your movements by something less than 1"


BatVink (formerly StevieVee)
http://facepaint.me.uk/catalog/default.php
Shafan
21
Years of Service
User Offline
Joined: 22nd Dec 2003
Location: israel
Posted: 7th Jan 2004 14:00
thank!!!!!
Turoid
21
Years of Service
User Offline
Joined: 1st Nov 2003
Location: The Netherlands
Posted: 8th Jan 2004 15:16
building a max payne game:

[href]www.geocities.com/darkbasicgast/max.html[/href]

if I = 1 then I = 1 else I = 0
Joe Cooning
22
Years of Service
User Offline
Joined: 29th Mar 2003
Location: United States
Posted: 8th Jan 2004 16:57
If you want a slow motion effect, all you need is an old processor and low RAM. Works great on my computer.

"The greatest oxymoron . . . ever, 'Microsoft Works'."
Major Payn
21
Years of Service
User Offline
Joined: 16th Dec 2003
Location: United States of America
Posted: 10th Jan 2004 00:55
I was also looking for a slow motion effect for my upcoming squad based shooter. After you get hit the first time (with a bullet) time slows down a little giving you a chance to see the baddy before he plucks off another hit. As with all my games I have no idea of how I am going to code that, but hey I suck at this!

Alienware area 51/radeon 9800 pro 256mb/sound blaster audigy 2/5.1 surround sound speakers.

Login to post a reply

Server time is: 2025-05-22 06:39:43
Your offset time is: 2025-05-22 06:39:43