Object as new object?

Get help using Construct 2

Post » Mon Dec 16, 2013 2:50 pm

How can I make this?

Dim Player as new Player1()

Im Trying to make MP Game, but I dont want create 999 Player Sprites objects and send info for all...

I want spawn some player whith only one sprite object.

Thank You!
B
12
S
1
Posts: 23
Reputation: 760

Post » Mon Dec 16, 2013 4:24 pm

Playerobject with Instance Var's would be an option
B
19
S
6
G
3
Posts: 197
Reputation: 4,154

Post » Mon Dec 16, 2013 4:48 pm

ImageImageImage
B
71
S
22
G
249
Posts: 3,763
Reputation: 138,577

Post » Mon Dec 16, 2013 5:19 pm

I think about System:Create object, but then all times we have 1 residual sprite... Im not sure how can I make this... Maybe yes, Instance Var's combined with this... IDK, I need think more about this xD

Thank You!! ^^
B
12
S
1
Posts: 23
Reputation: 760

Post » Mon Dec 16, 2013 5:29 pm

The standard is to either call Delete on your sprite in 'On start of layout' to clean-up the sprites you added at design time, or make a separate layout only to collect elements, and then you add the ones you need to your actual layout with Create.
ImageImageImage
B
71
S
22
G
249
Posts: 3,763
Reputation: 138,577


Return to How do I....?

Who is online

Users browsing this forum: tarek2, Yahoo [Bot] and 25 guests