How do I pick an instance

Get help using Construct 2

Post » Wed Jun 04, 2014 9:00 am

Hi,

How can I select the right instance on collision? I'm using Spriter and I want to select an object if the Player collides with it, and the enitity name of the object is "Bonus_fruit".

I have the option between:
- System: compare two values
- System: pick by comparison
- System: pick by evaluate

All seems to work right. But what would be the best choice?

I attached a png file of the different options.
You do not have the required permissions to view the files attached to this post.
B
15
S
3
Posts: 13
Reputation: 1,082

Post » Wed Jun 04, 2014 10:07 am

I would say the best option would be to use the object's "compare value" condition. Only for readeability since all of them will probably work just fine, and it would be micro optimising I think to try to squeeze out performances with that. You could however add an action to disable the collision of the current BonusEffect when you touched it.
Game design is all about decomposing the core of your game so it becomes simple instructions.
B
53
S
22
G
18
Posts: 2,122
Reputation: 17,123

Post » Wed Jun 04, 2014 6:56 pm

@Aphrodite Thanks for your reply, and advise. I will go for option 1. Disabling the collision is a good idea!
B
15
S
3
Posts: 13
Reputation: 1,082


Return to How do I....?

Who is online

Users browsing this forum: KTML5 and 32 guests