Dynamically Load Sprite

Discussion and feedback on Construct 2

Post » Tue Mar 04, 2014 1:02 am

Dear,
I have two images and a sprite (hero). Depending on the player's choice want to load a different image for the hero. How do I do that? N

Using Array? Dynamically Load Sprite?

If you can not want a solution that uses URL (or Internet)
B
5
G
1
Posts: 23
Reputation: 398

Post » Tue Mar 04, 2014 2:25 am

Use different animation frames. Another way of thinking with C2 is the Entity and Image style.

Entities are what are controlled and exist in the game world. Sprites are used to pin onto entities. This allows you to put any sprite onto an entity.

There is load image by URL, but it's not one to regulary use. Especially avoid that way for your request.
B
92
S
18
G
9
Posts: 2,455
Reputation: 15,113

Post » Tue Mar 04, 2014 12:34 pm

Could you show an example?
B
5
G
1
Posts: 23
Reputation: 398

Post » Tue Mar 04, 2014 3:47 pm

https://www.scirra.com/tutorials/253/ho ... tform-game

There you go. the first and best source for learning the ABC of C2.
B
92
S
18
G
9
Posts: 2,455
Reputation: 15,113


Return to Construct 2 General

Who is online

Users browsing this forum: No registered users and 9 guests