How do I target UID of object

Get help using Construct 2

Post » Sat Dec 06, 2014 3:16 pm

Hey guys quick question - I have an sprite being created when I click the mouse I'm capturing the UID of that object as the last one created and I'm trying to figure out how to on creation of a new one to first destroy the old one so that there is only ever one instance on screen... I have the uid of the last one made just cant seem to see where I can pick what to destroy?
Need Sprites For Your Next Project?
100% Vector Animated Sprites
B
8
S
2
Posts: 170
Reputation: 1,086

Post » Sat Dec 06, 2014 4:04 pm

I have attached a capx for viewing... here the two things I'm attempting to figure out


1) how I can utilize the store UID of the last sprite created to destroy it

2) WHY when I click around does my tank not face me I have the pivot point center and setting angle toward hotspot

any ideas here?? I notice the misc action to target object by uid but can't destroy it using that option...
You do not have the required permissions to view the files attached to this post.
Need Sprites For Your Next Project?
100% Vector Animated Sprites
B
8
S
2
Posts: 170
Reputation: 1,086

Post » Sat Dec 06, 2014 4:16 pm

ok issue two figured out.... just need to figure out a way to destroy instances of previous sprites when a new one is created using the UID stored in the var after it was created the first time
Need Sprites For Your Next Project?
100% Vector Animated Sprites
B
8
S
2
Posts: 170
Reputation: 1,086

Post » Sat Dec 06, 2014 4:25 pm

Pick by UID

<edit>
You do not have the required permissions to view the files attached to this post.
ImageImageImage
B
71
S
21
G
230
Posts: 3,688
Reputation: 128,847

Post » Sat Dec 06, 2014 5:26 pm

Oh Perfect Hornet thank you - I was playing with that pick UID but wasn't using right,.. thanks alot
Need Sprites For Your Next Project?
100% Vector Animated Sprites
B
8
S
2
Posts: 170
Reputation: 1,086

Post » Sat Dec 06, 2014 5:26 pm

how do I mark this thread solved?
Need Sprites For Your Next Project?
100% Vector Animated Sprites
B
8
S
2
Posts: 170
Reputation: 1,086

Post » Sat Dec 06, 2014 7:00 pm

Edit the title/topic.
ImageImageImage
B
71
S
21
G
230
Posts: 3,688
Reputation: 128,847


Return to How do I....?

Who is online

Users browsing this forum: David181, luckyrawatlucky and 3 guests