Assigning and object a value

For questions about using Classic.

Post » Sun Aug 01, 2010 6:28 pm

Question is why do you need to create the object?
[url:1cmb31kt]http://dl.dropbox.com/u/666516/idtouid.cap[/url:1cmb31kt]
Image Image
B
161
S
48
G
90
Posts: 7,356
Reputation: 66,767

Post » Sun Aug 01, 2010 6:37 pm

I need to create the objects... mostly because they are weapons that go on player and enemy ships, and can be changed and destroyed without a host ship, and it would be quite good if i could set the value the way that i wanted as shown in the example cause otherwise i would need to make events for all weapons in the game, lets say around 20-30weapons *8 so around 100-200 events... instead of just 8 events this way...

I mean its quite simple,
create object by name "kifla",
set "kifla" value to something,

but i dont know how to set values based upon the name of the object. Isn't there some python thing or whatnot to do that?
B
3
G
4
Posts: 54
Reputation: 1,183

Post » Sun Aug 01, 2010 7:06 pm

Don't use create by name if you want to modify the object right after it's created. In this situation it's easy enough to just add a few more events. It will only be one extra event per object.



p.s. mspaint makes some retro looking GIFs.
B
79
S
24
G
54
Posts: 4,749
Reputation: 40,761

Post » Sun Aug 01, 2010 7:07 pm

I see. Yeah you can't reference that object since the duplicate instance is already in the sol.
You will need to use a dummy instead.
Pretty sure you cant place an object in the sol, and then remove it in the same event.
Image Image
B
161
S
48
G
90
Posts: 7,356
Reputation: 66,767

Post » Sun Aug 01, 2010 7:15 pm

Rojohound i just said that i would need atleast 200 events if i were to do that.

But anyway i found a solution, a subevent with overlap... ill post example if anyone interested.

Here:
http://www.mediafire.com/?xmeib98no5o27n6
B
3
G
4
Posts: 54
Reputation: 1,183

Previous

Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 6 guests