display any variables

Discussion and feedback on Construct 2

Post » Thu Feb 21, 2013 4:42 pm

hi all, im making a zelda type game and i want to get UID of his house and display this as text on screen but cant figure it out, i've read the score post but not sure how i use it to my needs.

help much appreciated.

thanks
B
14
S
4
G
3
Posts: 77
Reputation: 4,011

Post » Thu Feb 21, 2013 4:55 pm

First make sure that you've got a text object, position it where you need it to be, then create an event like this:
On start of layout -> Text > set text > house.UID

Useful manual entry.
B
56
S
15
G
10
Posts: 910
Reputation: 11,972

Post » Mon Feb 25, 2013 8:22 pm

IMO you shouldn't use UIDs to check ANYTHING before your game is done. When I was trying to make doors I used them, but everytime I created a new object in my game all the UIDs changed.

I found that the best way to do doors (IMO) is using their IID and checking which layout the player is.

For instance, this way you could check that the player entered the third door on the first screen. Then you'd just have to program where he sould appear.

I think I overcomplicated it a bit in my game, but at least it's working now..andreyin2013-02-25 20:32:48
B
106
S
35
G
37
Posts: 798
Reputation: 25,215

Post » Mon Feb 25, 2013 8:23 pm

edit: Oops, accidentaly replied myself instead of editing my other post. Sorry!andreyin2013-02-25 20:29:37
B
106
S
35
G
37
Posts: 798
Reputation: 25,215


Return to Construct 2 General

Who is online

Users browsing this forum: No registered users and 8 guests