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
359
S
214
G
72
Posts: 22,952
Reputation: 178,600

Post » Thu Sep 01, 2011 6:56 am

I think "Launch Explorer" does that in CC already.
Image Image
B
161
S
48
G
91
Posts: 7,358
Reputation: 67,271


Return to Construct 2 General

Who is online

Users browsing this forum: No registered users and 10 guests