...use multiple instances of the same sprite?

Get help using Construct 2

Post » Wed Jul 03, 2013 8:24 pm

Hi.

Player one has made it to the castle's Great Hall. There are 4 doors, each leading to a different level.


Should I create new sprites for each door, and import the the same graphics into them?

Or is that one of the things you can do with instance variables:
copy paste the first door three more times, and assign them each a different Door number, and work out different behaviours on the event sheet?


thanks



B
13
S
1
Posts: 68
Reputation: 1,198

Post » Wed Jul 03, 2013 8:41 pm

You could put all in one door object, give the object instance variable 'level' and do something like this in events:

->On door clicked
... Go to layout door.level

Now clicking on door would take you to the layout that's name has been typed in the 'level' instance variable of the specific door object.
B
24
S
9
G
7
Posts: 756
Reputation: 7,312

Post » Wed Jul 03, 2013 10:00 pm

Awesome balls!

Thank you!
B
13
S
1
Posts: 68
Reputation: 1,198

Post » Thu Jul 04, 2013 12:11 am

R2
Last edited by CarHazy on Sun Jun 14, 2015 3:12 am, edited 1 time in total.
B
20
S
7
G
5
Posts: 24
Reputation: 4,510

Post » Thu Jul 04, 2013 12:19 am

Yeah, that's what I'll be doing from now on. For everything- monsters, treasure chests... all sorts of things, probably!
B
13
S
1
Posts: 68
Reputation: 1,198


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 4 guests