Something I don't understand with instance events

Get help using Construct 2

Post » Fri Dec 12, 2014 9:23 am

Here is the screenshot of my actions that are working as intended:
Image

When compiled, the app screen looks like this:
Image
Three instances of the same sprite with different animation frame set to each one.

I am trying to figure out why is that event construction is not working:
Image

I thought that this way it should work exactly the same.

Any help would be much appreciated! Thanks in advance!
B
9
S
2
G
1
Posts: 36
Reputation: 712

Post » Fri Dec 12, 2014 10:55 am

Why not just do it this way?
You do not have the required permissions to view the files attached to this post.
B
48
S
16
G
9
Posts: 1,098
Reputation: 11,197

Post » Fri Dec 12, 2014 11:23 am

when you say it doesn't work - what exactly doesn't work?

plus it's not the same when you have an event that has 3 subevents - that fire when main event runs and
3 events that run one by another each with it's own subevent. so there is your problem. not understanding how event sheet works.

also from guide - "Events run top to bottom
The order of events is important. Every event is checked once per tick (about 60 times a second on most computers), and they are run from top to bottom in the event sheet. "

also - what spongehammer told you.
Sea Monsters template - Isometric
Also includes 40 pages PDF of optimizations and "how-to" for your games, and how the "sea monsters" template was built. Follow link for details :)

sea-monsters-templates-and-assets_t162705
B
43
S
14
G
12
Posts: 626
Reputation: 9,450

Post » Fri Dec 12, 2014 12:19 pm

Many thanks to you, spongehammer and saiyadjin!
I am understand that this is my error, or rather misunderstanding of the way that events work. I have this picture when this app "misbehaves":
Image

And I expected it to work like it is in my first message. I am just try to understand how instances works and how to address them properly in my event sheet. I am sorry if that sounds offensive to anybody.

I am understand the importance of the event's order, but still don't understand why my second event sheet is not working "properly". Two instances are sharing the same place and they aren't changed their animation frame, but why?
B
9
S
2
G
1
Posts: 36
Reputation: 712

Post » Fri Dec 12, 2014 12:37 pm

In your second example Sprite instance 1 & 2 dont exist until the event completes so you cant pick them in the sub events.
B
48
S
16
G
9
Posts: 1,098
Reputation: 11,197

Post » Fri Dec 12, 2014 12:49 pm

Spongehammer, thank you so much! I was blind, but now I can see!
B
9
S
2
G
1
Posts: 36
Reputation: 712


Return to How do I....?

Who is online

Users browsing this forum: richardfu and 24 guests