Suggestion: Hotspots text/ini files? C1/C2

Discussion and feedback on Construct 2

Post » Thu Sep 01, 2011 3:50 am

Read hotspots and action spots from a ini that can be imported in the picture editor, so of like the collision thing.

In the images folder

Frame1.png

Frame1.ini/.txt

[hotspot]
21,42
[actionspot]
11,12

This should be useful if you had to do your sprite animation due to a file lost, despite having backups.

This would be a buy for me.=P
B
11
S
3
G
8
Posts: 473
Reputation: 4,569

Post » Thu Sep 01, 2011 4:54 am

Hotspots (and later, image points) are saved in the project XML like this as of r53:

[code]<animation framecount="9" loop="1" name="Default" pingpong="0" repeatcount="1" repeatto="0" speed="10">
     <frame duration="1" hotspotX="0.5" hotspotY="0.5" />
     ...
</animation>[/code]

Is there anything that external text files offers that the XML doesn't?
Scirra Founder
B
384
S
227
G
86
Posts: 24,139
Reputation: 190,761

Post » Thu Sep 01, 2011 6:56 am

I think "Launch Explorer" does that in CC already.
Image ImageImage
B
166
S
49
G
155
Posts: 8,111
Reputation: 100,743


Return to Construct 2 General

Who is online

Users browsing this forum: No registered users and 3 guests