How do I download a Sprite

Get help using Construct 2

Post » Mon Jul 20, 2015 5:24 pm

I want to download a Sprite in Runtime. But what is the url of the Sprite?
B
4
Posts: 15
Reputation: 234

Post » Mon Jul 20, 2015 6:05 pm

What do you mean? You want players to be able to download sprites that are in your game while the game is running? Like they click on a sprite and download it?
B
11
S
2
G
1
Posts: 79
Reputation: 842

Post » Mon Jul 20, 2015 11:06 pm

If you want sprites to be dynamically downloaded by event within the Construct action sheet sequence, then you have to have a blank placeholder sprite and reference the URL of where it is stored.

If you are asking about where native sprites are stored, it depends on what you are exporting in. In HTML5 exports, they are stored in .../exportDirectory/images (assuming you use the default option for "Subfolder for images") otherwise it will be in .../exportDirectory/customSubFolderForImagesDirectory where the ... is whatever you have in the "Export files to:" field.

If you are asking about where the Construct client keeps the sprite image files in preview mode, I believe it just references the image files directly on your hard drive when you initially created the sprite.
https://www.ravenheart.ca/home
Company name changed to avoid Facebook-type shenanigans

"Someone once told me I bite off more than I can chew...

I told them I would rather choke on greatness than nibble on mediocrity."
B
22
S
6
G
1
Posts: 1,414
Reputation: 4,822

Post » Tue Jul 21, 2015 9:49 am

Use the "Load image from URL" action of the sprite object.
The URL is the URL of the file itself and is the URL to any file you've hosted online for this purpose.

If you don't know what an URL is I'd suggest you to first have a web search engine look at the meaning of this acronym in your language, this might help you.
New to Construct ? Where to start

Image Image

Image Image

Please attach a capx to any help request or bug report !
Moderator
B
284
S
109
G
91
Posts: 7,319
Reputation: 87,487

Post » Tue Jul 21, 2015 10:55 am

For my project the sprite is changing at runtime and I want to download (browser) the fine sprite image at the end of layout. What I do?????
B
4
Posts: 15
Reputation: 234


Return to How do I....?

Who is online

Users browsing this forum: sublimate and 1 guest