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 Professional Discussion / Animations from file

Author
Message
MateiSoft Romania
12
Years of Service
User Offline
Joined: 16th Oct 2013
Location:
Posted: 6th Jul 2014 23:34
Hello,

I am trying to read some numbers key frames for an object from a text file, i managed to make them being red but the object freezez, the key frame represents the idle animation. Here is the code:

Thank You very much for your help!



Alex Matei CEO
www.alexmatei.com
SamKM
17
Years of Service
User Offline
Joined: 25th May 2009
Location:
Posted: 8th Jul 2014 03:28
This is probably me being an idiot, sorry about that, but I can't see the variable s$ being defined anywhere

The code never bothered me anyway...
MrValentine
AGK Backer
15
Years of Service
User Offline
Joined: 5th Dec 2010
Playing: FFVII
Posted: 8th Jul 2014 07:28
Quote: "
read string 2, ss$

read string 2, sss$
"


Quote: "if s$ "


MateiSoft Romania
12
Years of Service
User Offline
Joined: 16th Oct 2013
Location:
Posted: 8th Jul 2014 12:42
s$ is not that important...the thing that i am looking is at loop object, in a text box i have two lines that represent the animation key frames, i converted them to values in loop object but it doesn't seem to work...the object freezez and i think that this is from this part of code

Alex Matei CEO
www.alexmatei.com
MrValentine
AGK Backer
15
Years of Service
User Offline
Joined: 5th Dec 2010
Playing: FFVII
Posted: 8th Jul 2014 13:42 Edited at: 8th Jul 2014 13:43
Try setting them to a local value variable then place them inside loop object

If...
Localvar1 = Val(ss$)
Localvar2 = Val(sss$)

Loop object... Localvar1, Localvar2...
Endif...

EDIT

On phone and hungry right now. Made edit above...

MateiSoft Romania
12
Years of Service
User Offline
Joined: 16th Oct 2013
Location:
Posted: 9th Jul 2014 13:23
Thank You MrValentine, it worked very well!!!

Alex Matei CEO
www.alexmatei.com
MrValentine
AGK Backer
15
Years of Service
User Offline
Joined: 5th Dec 2010
Playing: FFVII
Posted: 9th Jul 2014 15:43
glad to help!

Login to post a reply

Server time is: 2026-07-06 04:29:31
Your offset time is: 2026-07-06 04:29:31