Function and UID help

Get help using Construct 2

Post » Sat Jun 29, 2013 7:38 pm

I want to create a function that create/spawns a bullet at the location of a given UID. Being able to pass and use a reference to an object would be extremely useful.

Thanks!!!!
B
5
Posts: 10
Reputation: 370

Post » Sun Jun 30, 2013 1:49 am

You can already do that by passing the UID as a parameter to the function, then using 'Pick by UID' to pick the instance again inside the function.
Scirra Founder
B
383
S
225
G
86
Posts: 24,119
Reputation: 190,546

Post » Tue Jul 02, 2013 12:30 am

Thanks Ashley. I found that after I posted but wanted to try and use it with a family filled with all objects before I posted a solution. Still haven't had a chance to test it but I will post my capx if it works.

Thanks again.
B
5
Posts: 10
Reputation: 370


Return to How do I....?

Who is online

Users browsing this forum: Kenthria and 11 guests