The Daily Click ::. Forums ::. Klik Coding Help ::. Loading frame with ini
 

Post Reply  Post Oekaki 
 

Posted By Message

Jon C-B

I create vaporware

Registered
  23/04/2008
Points
  237

I'm an alien!VIP MemberWii OwnerI donated an open source project Santa Hat
25th July, 2009 at 20:43:54 -

I understand the basic works of the ini object, but how can you make it so that when you save the ini saves the frame number and when you load it takes you to the frame you saved at.

 
n/a

Spitznagl

Cabinetmaker

Registered
  06/12/2008
Points
  4260

The SpinsterVIP MemberHas Donated, Thank You!Picture Me This Round 29 Winner!Picture Me This Round 31 Winner!Picture Me This Round 36 Winner!
25th July, 2009 at 20:57:49 -

To save:
Set value frame to item "Item" in group "Group"
(The frame value is under the storyboard controls)

To load:
Jump to frame number GroupItemValue( "Ini", "Group", "Item")

 
...

AndyUK

Mascot Maniac

Registered
  01/08/2002
Points
  14450

Game of the Week WinnerSecond GOTW AwardHas Donated, Thank You!VIP Member
25th July, 2009 at 21:02:48 -

To save it's as simple as telling the ini to set it's value to 'Frame'. You can just type in the word Frame in the expression editor. Although you'll want to set a group and perhaps an item first.

To load you need to set the same group and item, then make an event

Upon pressing Enter (or whatever you want)- Jump to frame - use a calculation - retreive data from an object - ini - get value.

Done.

 
.

Jon C-B

I create vaporware

Registered
  23/04/2008
Points
  237

I'm an alien!VIP MemberWii OwnerI donated an open source project Santa Hat
25th July, 2009 at 21:47:55 -

Thanks for the replys. When I did hat you said it didn't work. Here's what i made. http://www.mediafire.com/?dtzxi0znflt

 
n/a

Spitznagl

Cabinetmaker

Registered
  06/12/2008
Points
  4260

The SpinsterVIP MemberHas Donated, Thank You!Picture Me This Round 29 Winner!Picture Me This Round 31 Winner!Picture Me This Round 36 Winner!
25th July, 2009 at 22:30:43 -

O_o your example is an .exe, how could we see what's wrong?

Anyway, here's how to do it:
http://www.mediafire.com/file/jddyd51nzyd/FrameSavingToIni.rar

 
...

Jon C-B

I create vaporware

Registered
  23/04/2008
Points
  237

I'm an alien!VIP MemberWii OwnerI donated an open source project Santa Hat
26th July, 2009 at 00:52:37 -

Oh right sorry. but seeing that example, I think I get it now. thanks

 
n/a
   

Post Reply



 



Advertisement

Worth A Click