Replace Objects for selected events

New releases and general discussions.

Post » Wed Mar 03, 2010 6:38 pm

Hey GoldMatenes... instead of all those events why don't you do something like

[code:19m4r5q2]
+ Whatever condition
-> LastEvent12: Load frame from AppPath & "Tiles/" & .Value('Last2') & ".png"
[/code:19m4r5q2]

Of course this is just a simple example, and it would require you to either use names in your variables instead of numbers, or change your frame names to numbers.

Of course if you don't want to change either you could have it read from an .ini file to match the numbers with the names or something, by adding an extra action. That way the only thing you have to change is the contents of your .ini file if you need to create a new list to draw from. At any rate it would cut down on a lot of repetitive events.
Moderator
B
5
S
2
G
6
Posts: 4,348
Reputation: 10,971

Post » Wed Mar 03, 2010 7:41 pm

I know there are better methods, but I've been having serious issues with ini coding and with animation frames, which seem to have a mind of their own.
B
2
S
1
G
3
Posts: 43
Reputation: 1,086

Previous

Return to Construct Classic Discussion

Who is online

Users browsing this forum: No registered users and 5 guests