Obi554's Recent Forum Activity

  • Check this link:

    There are a few good points why you shouldn't use many global variables in your games.

    You can use that Globals plugin, or any other "dummy" object to store instance variables, for example a small invisible sprite. As far as I know, there is no limit for a number of instance variables.

    Or instead of instance variables you can use a dictionary. Create a separate instance of the dictionary for each ship and store as many keys as you need.

    Thanks dop2000. Your response is great as always and puts me in a direction to learn more about the programme.

    I might play around with the dictionary vs invisible sprite in a simple construct 2 programme to see how they work, and ease of functionality for storing lots of variables. I'm someone who likes things to be organised well so we'll see how it works haven't used a dictionary yet...

  • Do you mean in the editor?

    I use folders to organize objects, so I usually do not have to search that long for an object.

    Also, if you select the project window, you can press the first letter(s) of your object on your keyboard and it jumps to that object.

    I've tried this and it only jumps to the first item in the menu which starts with that letter, not necessarily in the objects list, it could be a layout.

  • This is really time consuming. A few days ago I spent nearly 10 minutes searching for just a few objects to permanently delete. I have hundreds of text objects in my game, and I've tried naming everything to an ordered sequence, but I find scrolling down that side bar to search for a name really inefficient and wastes time. I don't see why I can't simply permanently delete an object by using right-click, or why I can't at least easily link to the object in the side-menu using right click so I can permanently destroy it.

  • 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 !!!!

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • 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

Obi554's avatar

Obi554

Member since 1 Oct, 2017

None one is following Obi554 yet!

Trophy Case

  • 7-Year Club

Progress

7/44
How to earn trophies