nimos100's Recent Forum Activity

  • As long as you only need to test a few globals it should be fine, but if you plan on testing a lot then i wouldnt use it either.

    But a way you can do it, is by adding a local variable or global, whatever suits you.

    Lets call it:

    Lowest_value_found

    Then you add:

    If G1 < G2 Set lowest_value_found = G1.value

    After that you test the next one against than value.. so:

    If Lowest_value_found > G3 then Set lowest_value_found = G3.value

    and then you continue.

    I dont think there is a way to loop through Global variables, so using this method is really bad if you have to test like 1000s, as you would have to do a lot of tests. Then you would be better off, using an array as already suggested. If you dont like arrays you can do it with a list as well.

  • OMG how can i have missed that <img src="smileys/smiley9.gif" border="0" align="middle" /> , well thats just perfect.

    Thanks <img src="smileys/smiley32.gif" border="0" align="middle" />

  • Hi

    Think it would be a good idea if it were possible to organise your objects a bit better.

    For instance what im thinking is when you press "add action" all your objects are added in a huge pile making it a bit confusing if you have a lot of objects.

    So a feature where you could add objects to categories or something so you could easier find them would be cool.

    To give an example, i might have a scoreboard containing a lot of graphic, texts etc. If i could add all these to a category called "Scoreboard". And doubled clicked it, the object viewer would only show objects belonging to that category. Think it would make it a lot easier to find and know which objects were used on the scoreboard, without having to scroll through a long list of objects not relavante for what im currently working on. Would also make it harder to accidently pick a wrong object, which name might remind of another one.

    As i see it, it should be purely for organising objects.

  • Hey

    I have added a save and load function to my game, and it works fine as long as the user doesnt close the application.

    But i have a problem when i open the application to find the names of the save games, so the user can select them from a list rather than having to remember the name. I have looked at the webstorage, but i dont like that if the user clear his local storage the games are lost. I would like it to be more solid.

    Anyone know how or even if its possible to do it?

    Thanks

    • Post link icon

    Dont know if its part of the minor things you want to add, but otherwise the ability to create a specific object in a family would be a really nice improvement.

    All the ideas sounds cool, but have to go with the debugger.

  • Hi Just wondering how people make huds, as i find it a bit time consuming if there are lots of stats, so wondering if im doing it the smartest way.

    The way i do it currently is i have a sprite that acts as the background for the hud. And all the stats (text, buttons etc) on top of that and add all of them in a container. To align all of them so they appear correctly during runtime, i add imagepoints for each stat, and position the stats when they are created in the game. However since design time and runtime doesnt look exactly the same, it means that i can only use the design time as a reference to align the stats somewhat correctly, but to make it 100% correct, i have to run the application over and over to check if it also is.

    So are there any other way to do this easier?

  • You can make a global variable called "Last_generated_number" and each time you generate a number you store it here.

    Then you can do a check:

    While

    random(number) = Last_generated_number

    Then as long the random(number) = Last_generated_number it will make a new roll.

    Then when its not Equal to the "last_generated_number" it will continue and you can use it. Then you store the new number in the "last_generated_number" variable, so it will be used for the check next time.

    If you dont used negative numbers. You can just put "Last_generated_number" to -1 as default from the beginning, so it will never match the first generated number.

  • This is a guess as im not sure how or when you get the error message :) but maybe you are trying to store more data in the variable than possible.

  • Btw im using IE 9

  • Here is an image, with how it works in both internet explorer and chrome.

    In chrome after i select item 2 in the list it changes to item 2 and item 3 with no problems. But in internet explorer it doesnt. However in some cases it might select the item if i try to select another, like in the screenshot where i select item 3 even after it fails selecting item 2. However other tests i made it wont change at all. But if no one else seems to be having this problem, its probably just my internet explorer that is screwed up somehow.

    <img src="http://i48.tinypic.com/24ywwvm.jpg" border="0" />

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I just change the item in the list object. There are no events or anything added to the project, its a completely empty layout with a list object that have the 3 default added items, that are there when its created. And i just try to select for instant item 2, but it wont change it.

  • Link to .capx file (required!):

    http://

    Im not sure if its a bug with construct 2 or not. But if someone can try it and see if they get same result it would be great. It seems to only happen in internet explorer for me.

    Steps to reproduce:

    1. Create a new project and add a list. just using the default settings.

    2. Change the item in the list.

    3.

    Observed result:

    Wont always change item.

    Expected result:

    That it change item.

    Browsers affected:

    Chrome: no

    Firefox: Dont know

    Internet Explorer: yes

    Operating system & service pack:

    Windows 7 Service pack 1

    Construct 2 version:

    r124

nimos100's avatar

nimos100

Member since 23 Sep, 2012

None one is following nimos100 yet!

Trophy Case

  • 12-Year Club
  • Coach One of your tutorials has over 1,000 readers
  • Educator One of your tutorials has over 10,000 readers
  • RTFM Read the fabulous manual
  • Email Verified

Progress

16/44
How to earn trophies