Loading files externally?

For questions about using Classic.

Post » Tue Nov 01, 2011 11:21 pm

I would like my game to load sprites from the application folder so that textures can be modded? Any help on this?
B
4
G
1
Posts: 50
Reputation: 652

Post » Wed Nov 02, 2011 3:03 pm

Two possible ways:

1) Use "load animation frame from file" (a sprite's action under the category 'animation')

2) Use the image manipulator object. The actions "load image" and "copy to sprite" will be needed here. (you might also need to flip the image, i think it will be stored upside down on load)
Image
B
23
S
8
G
10
Posts: 1,820
Reputation: 8,242

Post » Wed Nov 02, 2011 10:05 pm

Thanks!
B
4
G
1
Posts: 50
Reputation: 652

Post » Thu Nov 03, 2011 1:12 am

Also how can I make a sliding door, as in a door that slides up slowly, then back down and for having buttons that activate it, could I just make another sprite, make it always center on the player and be the player's "hitbox" and have it so that whenever it collides with the button it triggers?

And last but not least, how would I be able to load the sprites and play them as animations, basically I want to be able to put the loaded sprites into different animations and be able to play them.mogey2011-11-03 01:53:59
B
4
G
1
Posts: 50
Reputation: 652


Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 7 guests