How do I create some sprites according to the determined amo

Get help using Construct 2

Post » Mon Apr 06, 2015 12:23 am

How do I create sprites as long as available amount and subtracting the total of each of them (as an inventory)? I can create only two and the amount does not decrease. Any help? Thanks in advance.

https://www.dropbox.com/s/6cmdderd2v93m32/test.capx?dl=0
B
73
S
13
G
2
Posts: 990
Reputation: 6,996

Post » Mon Apr 06, 2015 1:56 am

Image
B
63
S
23
G
7
Posts: 1,475
Reputation: 10,776

Post » Mon Apr 06, 2015 4:24 am

I am sure korbaach covered it, but I would say use frames would be best bet. Each loaded state would be a different frame.
Check out my completed games on the Arcade! Capt. Doe Save the Universe! & Clicker Wizard!
B
63
S
17
G
8
Posts: 629
Reputation: 9,269

Post » Mon Apr 06, 2015 10:24 am



...surely... :P

Exactly what I needed.

Thank you, @korbaach
B
73
S
13
G
2
Posts: 990
Reputation: 6,996

Post » Tue Dec 08, 2015 10:04 pm

Hi @Korbaach

Sorry, but do you still have this file? I lost my files and I need to check this script again.
B
73
S
13
G
2
Posts: 990
Reputation: 6,996

Post » Wed Dec 09, 2015 4:44 pm

Sorry @RenatoB I also can not find it..
I can make capx again.but I can not guarantee that a solution will be identical or even similar to a previous...
Image
B
63
S
23
G
7
Posts: 1,475
Reputation: 10,776

Post » Wed Dec 09, 2015 4:45 pm

I''l really appreciate that. No problem if it's not the same. I need that kind of solution to redo my project.
B
73
S
13
G
2
Posts: 990
Reputation: 6,996

Post » Wed Dec 09, 2015 8:18 pm

@RenatoB I finally found oldTest.capx
As I suspected..I used an additional sprite object..
I think this could be easily done also with only two sprites if you use families ..but that will have to do it someone else
Image
B
63
S
23
G
7
Posts: 1,475
Reputation: 10,776

Post » Wed Dec 09, 2015 8:45 pm

Thank you @korbaach

I didn't remember how it was. I had changed drag'ndrop event for on touched. Now I'll need to remember what I did. But sorry again and thanks anyway for you time.
B
73
S
13
G
2
Posts: 990
Reputation: 6,996


Return to How do I....?

Who is online

Users browsing this forum: aramesh, Governador and 1 guest