On creating objects with opacity

For questions about using Classic.

Post » Tue Feb 03, 2009 4:23 am

Ok, so I have created an object at a image point using the system function. However, when I attempt to change the opacity of said created object at a later time, I have little luck. The flow basically goes as such:

ObjectA overlaps objectB => create objectC at imagepoint 1 on ObjectA
Mouse is over objectA=> set opacity of objectA
Mouse is over objectC=> set opacity of objectC

I have tried this both as it is written here, and with a for each object loop, with no luck in either setting. Any ideas?
B
2
G
4
Posts: 49
Reputation: 1,148

Post » Tue Feb 03, 2009 5:03 am

It's a shame that containers can't be used for this. :P Anyways, basically what you want to do is to give Object C a value called "attached". When Object C is created, set the "attached" value to the UID of Object A. Then, to pick it when you mouse over Object A, do something like this:

(Both of these are conditions in the same event)
[code:37l3mwc4]
+Mouse is over Object A
+Object C: Value 'attached' is equal to Object A.UID
-Object A: Set Opacity to X
-Object C: Set Opacity to X
[/code:37l3mwc4]

I hope I explained that clearly enough. :)
Moderator
B
97
S
36
G
19
Posts: 1,584
Reputation: 17,692

Post » Tue Feb 03, 2009 5:13 am

Sweet. Thanks much!
B
2
G
4
Posts: 49
Reputation: 1,148

Post » Tue Feb 03, 2009 7:55 am

Aren't they removing the UID in future release? As an alternative there is the Pairer Object, which should work for situations like that... or so I am informed. When you create object C, pair it to the object A and pronto.
B
62
S
21
G
12
Posts: 1,910
Reputation: 13,155

Post » Tue Feb 03, 2009 9:21 am

Yeah pairer should be used for that situation...except i found a bug in it...once the bug is fixed I will release an example...but first I must finish watching Chobits :P
B
4
S
2
G
5
Posts: 641
Reputation: 3,011

Post » Tue Feb 03, 2009 11:47 am

We won't remove UID, but its use should be limited once the Pairer object is fully up and running.
B
3
S
2
G
5
Posts: 1,777
Reputation: 5,529

Post » Tue Feb 03, 2009 12:37 pm

[quote="David":3jeg64p2]...but first I must finish watching Chobits :P[/quote:3jeg64p2]


Chobits was good but Love Hina was better.
B
5
S
2
G
4
Posts: 632
Reputation: 2,829

Post » Tue Feb 03, 2009 12:42 pm

[quote="David":2f5pr1wc]...but first I must finish watching Chobits :P[/quote:2f5pr1wc]

Animes? Ugh, David...



:P
Moderator
B
5
S
2
G
6
Posts: 4,348
Reputation: 10,971


Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 4 guests