ezrubiera's Forum Posts

  • >

    > > You can turn your Rooms into global objects, you do this in the properties panel, top left corner. Then they will be available in all your layouts.

    > >

    >

    > Oh! I have to try that. I guess the UIDs are saved between the layouts, so I can access every object with the same UID through the rooms. Thank you, I will reply when I try it. Thanks in advance ^^

    >

    Yeah its the same object from once its created with all settings etc.

    Mate, it worked perfectly! thanks a lot

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • You can turn your Rooms into global objects, you do this in the properties panel, top left corner. Then they will be available in all your layouts.

    Oh! I have to try that. I guess the UIDs are saved between the layouts, so I can access every object with the same UID through the rooms. Thank you, I will reply when I try it. Thanks in advance ^^

  • Yes, that is the main problem, I store the UIDs but in the next layout they are useless. So how can I save the information of that objects between layouts? If I generate a 2 dimension array of rooms, I can store the information in the 3rd dimension of the array for each room, but if I have a 3 dimension array of rooms, I dont know how to store its information. I can use a lot of arrays for each variable but is kinda messy. So I need a workaround to solve this: store the information (intance variables) for X x Y x Z rooms. D:

  • I guess u are using platform behaviour. In the behaviour settings, put the setting 'Default Controls' to no.

  • Hi, I am doing a room generator with all its connections. I want to do it in 3D space, so I can have X rooms width, Y rooms height and Z depth, and each room can have 6 possible connections with its neighbour rooms. I made a object called "room" that can store connections information with instance variables. I create X x Y x Z rooms and I save their UIDs in an array, then I run my algorythm and it works fine. Ok, but when I want to start playing, each room is a different layout, so when I load the first layout or whatever, all my "room" instances with its information are lost. Is there anyway to make an array to save object instances instead of only numbers an text? I dont want to use infinite arrays to store all the information and I can't change the layout per room system.

    So, Can I save my object instances between layouts? I know there is the persistent behaviour, but I think it wont work like I want, because it saves it for a specific layout. I want to have my X x Y x Z array with my objects UIDs and access that objects in all layouts.

    Thanks in advance ^^

  • nice nice i thought in a variable like you tell me, but i didnt know how to use it correctly! thank u both of u! :)

  • I want to generate a random number between 0 and 59 but I dont want some numbers like the 3 and 5. There's a way to make exceptions in the generation of the number?

    I mean something like: round(random(0,59)) exceptt -> 3,5

    Thanks.

    PD: I tried to post this 2 times but the forum didnt let me, so if it appears 3 times is for that.

  • In the examples I saw, its like a constructor of a class, referring to JS or C++, used to generate more objects of the same type without writing all the parameters that they have. I will investigate, thanks again

  • Thanks a lot to all. I didnt know that its a plugin! I thought my Construct was broken :( I'll try, thanks a lot, really :D

  • But when I want to declarate a function what i have to do? Its like defining an event? I dont find it

    thanks again ^^

  • Thanks!! but... where can i create those functions? I mean the manual is great but I dont find where is declarated the function.

    Thanks again :)

  • I wanna know if it is possible to call functions, or go and play some lines of my code, like C++ or something like that. I want to play my game and in some cases go and read again some lines above. Hope u can help me :)

  • I tried that, but in the position (0,0) it always return the answer, I dont know why.

    Thanks for answering so fast :)

  • Hi,

    I have a XY Array which in the X I save questions and in the Y I save the answers. I generate a Random number to choose the question that it is showed in a text box. I save my Random number in the variable Rnumber, and then I write this:

    Text: set text to (Array.At(Rnumber))

    That is the way to only show the elements that are saved in the X axis, but sometimes it shows me the Y axis, that is the answer. I need some help to only shows the question (X axis).

  • up!

    HELP PLEASE