Obi554's Forum Posts

  • Hi,

    I'm developing a multiplayer sci-fi game with minimal graphics, in which most game data is shown as text display information and numbers. For example instead of seeing a ship moving through space, the player sees a readout of ship speed on the screen.

    When I first started this project a few months back, I stored variables like ship speed, engine power and so on in global variables, which change over time.

    This morning I was wondering if this is in fact a mistake, since in my game a player will have the option to buy and own more than one ship. How would I then save the ship stats from the global variables for each ship, as they will be different.

    Then I thought, is it a better idea to create an off-screen object which represents the ship, then store the ship stats inside instance variables for the object? The player can own as many ships as he wants and each (invisible) object will contain its own saved stats. This will allow me to decrease the number of global variables in my game by 50% as the way its developing there are a lot of variables going into a single ship which affects the readouts the player will be seeing on the screen. Hopefully this will also reduce the cpu usage?

    The same question also applies to things like ship systems for examples weapon fire; their power; rounds and so forth....would I need to create weapon objects too to store these variables, or global? Right now everything in my game is global lol...

    What do you think?

    Is there a limit yo the number of instance variables an object can carry? I need about 50-100 for each ship (maybe more or less) as I'm making a very complex game.

    Thanks for your help.

  • Hi,

    When deleting game objects I find it really tiresome to search for the name of the object in the object list on the left....isn't there an easier way to permanently delete something than by doing this?

    When I click on the object in the main layout and delete it, it just deletes the instance, no the object itself.

    Thanks for any help.

  • Hi everyone,

    I'm trying to find a page that gives a bit of information on how to avoid event codes that are very cpu intensive or repetitive. If I know now, it will help me during my entire project.

    Does anyone have any tips? For example, are global variables checked every tick, ie 60 times a second? And does this mean having too many global variables is bad for the cpu?

    Like could a game have say 500-1000 global variables and function properly?

    Thanks.

  • "Else" should be at the same level as the condition (Button var=0) and there should be no other events between them.

    You can select the condition and press X, this will create an Else event for it.

    WOW !!!!

  • In that tutorial events #3 and #4 are executed on every tick, which is not very good. Also, there are several ways to toggle boolean variable in just one event, then event #2 will not be needed, for example: toggle=(toggle=0)

    Anyway, here is the right way to do this:

    For some reason 'Else' isn't working for me, it's showing as red.

  • Finally solved using this brilliant solution!

    scirra.com/tutorials/158/ve ... two-states

  • Construct 3 should be compatible with C2 projects. Can you share a project file showing the difference?

    It seems to be working now. I think the problem was I had the events way down at the bottom of a section of other events, when they should have been at the top.

  • >

    > > Hi,

    > >

    > > I've come across old pages for instructions on how to make an event log, but unfortunately the links are no longer active. Does anyone have this tutorial?

    > >

    > > viewtopic.php?f=162&t=79054&p=755907#p755907

    > > scrollable-text-box_t79054

    > >

    > > Learning how to make this would be amazing, as i'm creating a sci-fi strategy game where every player action needs to be shown in a text-log.

    > >

    > > Thanks.

    > >

    >

    > Is that from the Construct Classic section? If so, it is not at all compatible with C2 or C3.

    >

    > Will the following Tutorial be of any use?

    > It's for C2, but is easy to import for C3.

    >

    > scirra.com/tutorials/749/cr ... to-mmorpgs

    >

    Hi, yes I found this page earlier - but there is no active link to the tutorial? I can see a 'demo' button but it takes me to a 'file not found' page.

  • > Hi,

    >

    > I've come across old pages for instructions on how to make an event log, but unfortunately the links are no longer active. Does anyone have this tutorial?

    >

    > viewtopic.php?f=162&t=79054&p=755907#p755907

    > scrollable-text-box_t79054

    >

    > Learning how to make this would be amazing, as i'm creating a sci-fi strategy game where every player action needs to be shown in a text-log.

    >

    > Thanks.

    >

    Hi, yes I found this page earlier - but there is no active link to the tutorial? I can see a 'demo' button but it takes me to a 'file not found' page.

    Is that from the Construct Classic section? If so, it is not at all compatible with C2 or C3.

    Will the following Tutorial be of any use?

    It's for C2, but is easy to import for C3.

    https://www.scirra.com/tutorials/749/creating-an-activity-log-similar-to-mmorpgs

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Common mistake by new users is that they need to understand that all Events are run in one tick, one after another.

    So in your case, you test for a condition, change a variable, which makes the following condition valid, which resets the variable back again.

    Try using either sub Events or an 'Else' Condition.

    Can you give me an example?

  • Hi,

    I've come across old pages for instructions on how to make an event log, but unfortunately the links are no longer active. Does anyone have this tutorial?

    Learning how to make this would be amazing, as i'm creating a sci-fi strategy game where every player action needs to be shown in a text-log.

    Thanks.

  • Hi,

    I'm trying to code the following:

    I have an 'show info' button at the top of the screen. When a player clicks on this it will make the text items with helpful information 'visible'. The button text then will display 'hide info' and when the player presses it, information will become 'invisible'. I can only get the first part to work, making things 'visible'. Is there something wrong with my events?

    My events are as follows:

    Button 1: On clicked

    & Button1 is instance variable=0 >>>>>> text item: Set visible

    & set Button1 instance variable=1

    Button 1: On clicked

    & Button1 is instance variable=1 >>>>>> text item: Set invisible

    & set Button1 instance variable=0

    If button1 instance variable=0 >>>>>>>Button 1: set text "show info"

    If button1 instance variable=1 >>>>>>>Buton 1: set text "hide info"

    it only works for the first part, whenever I try and enable the second part to 'hide info' nothing works.

  • Hi,

    I've just purchased the paid personal version of construct 3.

    I've created a simple listbox with 3 items, and set up events so that on selecting each item a text object will show the value of the item selected (values are stored as global variables for each item).

    Unfortunately, the events are not working as expected - I've just created the same event in my demo version of Construct 2 and it works perfectly....i'm not sure what the problem is.

    Is construct 3 coded differently?

    It's really confusing.

    Thanks.

  • Ok so i'm working on my new project in construct 3 after buying the personal licence.

    Does anyone know if my purchase includes the free bundle of assets like sounds/sprites etc that the construct 2 package comes with?

    I kind of assumed it did and completely forgot to check :/

    Getting some sci-fi sounds / techy stuff for my game was one of the main reasons for buying it.

  • Thanks!

    So I went with the c3 option Wish me luck!