[Solved] How do I Spriteselection

Get help using Construct 2

Post » Thu Nov 06, 2014 3:36 am

Hi there!

Somehow Im stuck on a rather simple question...

To give you an idea what I am encountering:
Image

I got a field of 3x3 elements - in this case these are flowerpots. :D
I later have to work with them - better said, they are "element of game".

There is one single sprite for the pots itself, this sprite contains all the possible states (empty, filled with earth, filled with watered earth, seeded, etc.) in single animations (each animation should have his own frames) and the pots are selected by their UID (if even possible, lol). So, when we talk about
Code: Select all
I want to change the state of a pot, which is actually changed when I click on the sprite - and exactly that sprite with his UID, which I touch is selected.

is NOT possible, then I would ask, do I really have to make 9 different sprites, containing 9 different functions in the event sheet with mostly the exactly same text (yes, I know that I could use a for-function or something similar to achieve what I want), but isnt it possible to do a "more elegant" version of my needs?

Already studied viewtopic.php?t=63692&start=0 but didnt found something. In german I would prefer to say "I stand on the hose" (doesnt even know if such a phrase exists in english, lol) but I cant imagine a solution right now :S

Regards,
Proxymity


Edit: Im optimistic - here is the *.capx if someone has a clue :mrgreen: >> http://www.proxymity.de/misc/potquestion.capx
Last edited by Proxymity on Fri Nov 07, 2014 2:10 pm, edited 1 time in total.
B
24
S
14
G
9
Posts: 118
Reputation: 6,799

Post » Thu Nov 06, 2014 4:34 am

....
You do not have the required permissions to view the files attached to this post.
Image
B
65
S
23
G
7
Posts: 1,505
Reputation: 10,896

Post » Thu Nov 06, 2014 12:04 pm

korbaach wrote:....


Well, Im a bit ashamed what I asked.. :D

Thanks for your fast response!... yet so easy :roll:

Regards,
Proxymity
B
24
S
14
G
9
Posts: 118
Reputation: 6,799


Return to How do I....?

Who is online

Users browsing this forum: unicornspitfire and 71 guests