Gamezilla's Forum Posts

  • Wow Ramones, thanks for the example it surely clear things up for me. The index change after deletion, my assumption was that the array would put 0 value in it or something. I think instead of delete I might have to try to set it 0 0 at that index so that the index array does not change and I can do my thing. Not a bug you can close this Ashley, I think of it as a learning experience.

  • Ok the while loop didn't work correctly because I nested it, but I know thats not the problem.

    So it does work right, but as far as the index inside of that, I put a simpler one here.

    It seems like you are correct about something not being right about the delete index for arrays. The delete works if its indexinside 0 0 . Indicating that its at that index and value is deleted. Only sometimes does it work though.

    There is also a bug with it displaying the index number, why does it not display correctly. Sometimes it does display the indexinside correctly before the values.

    empireofgames.net/deleteindex.capx

    Hit Q for it to randomly generate indexinside for the array.

    Do it up to 5 time than restart layout and do it again.

  • Yes, it was actually from something a little bit bigger, but I left variables in there so it must of been a little bit confusing. I created a simpler one here. Just run it and Right Click and it will generate these boxes from the array position points. The delete before should display these coordinate in order from when they where picked. The deleted after should be 0? because its already deleted from the array. The While loops is suppose to go through the whole array, you can also do i <= Array.Width instead of just < than

    Right click once, and re-run the Layout Multiple times and look at the numbers.

    http://empireofgames.net/arraysimple.capx

    It could be a family bug or how the text field is bugged in that situation, The While loop I use on my other ones to find out which Array index was not used, because if say I have the Array Width loaded with 9 variables and I only use 8, I would while through and search for the 1 that still contains the coordinate(index not deleted)

    -Thanks for listening , you the genius.

  • Yes, it was actually from something a little bit bigger, but I left variables in there so it must of been a little bit confusing. I created a simpler one here. Just run it and Right Click and it will generate these boxes from the array position points. The delete before should display these coordinate in order from when they where picked. The deleted after should be 0? because its already deleted from the array. The While loops is suppose to go through the whole array, you can also do i <= Array.Width instead of just < than

    Right click once, and re-run the Layout Multiple times and look at the numbers.

    empireofgames.net/arraysimple.capx

  • Oh awesome, that is a nice feature to have since few of my sites been hit my Russian viruses/malware .

  • Ashley

    How is it obfuscated? I open the c2runtime javascript file and it seems to be pretty clearly code looking.

  • Link to .capx file (required!):

    empireofgames.net/bugreporting/ArrayIssue.capx

    Steps to reproduce:

    1. Execute and Click the keyboard button Q. It will than load the array,

    you will see the number 500 at the bottom indicating the array is loaded.

    2. Now Right click your mouse cursor, do it again

    3. It display sets of number in 3 columns. What I have is 9 boxes, and I want 8 boxes are in the boxfamily families group. I want to make it after all the array is deleted, I can sort or somehow find which one is not deleted and use that to load my 1 sprite image there.

    Observed result:

    The numbers listed to the left is from the while loop, I'm looking to

    find the Array index that has value in it because the other one should be deleted already.

    The last set of columns are numbers after they have been deleted, why is it still in the array showing up like that?

    Expected result:

    1. First column should show only 1 index that is not deleted

    2. Second column works fine, indicating the value before hand.

    3. Third Column I'm expecting it to have a 0 value in the array after it is deleted?

    Browsers affected:

    Chrome: no

    Firefox: no

    Internet Explorer: yes/no

    Operating system & service pack:

       Windows 7, 64 bit

    Construct 2 version:

    r114

  • So I have 9 cubes, I want it to randomly go to my 9 x,y points. How would I do it with an Array? Also need the random function too.

    <img src="http://i1152.photobucket.com/albums/p489/hot-stuff-in-demand/firsthotstuff/9boxes_zps6d63de6f.jpg" border="0" />

  • I can give you 10$ for the source code.

  • Kids and non techy people might not know how to disable it and such, so I must facilitate there fun time. Plus its not a pop-up they clicked it to go to the site.

  • So that the pop-up blocker doesn't work. lol.

  • Does anyone know how to make the GoToURLWindow have a feature that is target="_blank". Currently it does open a new tab but I want it to have the target="_blank" attribute. I open up the c2runtime.js and on line 9956 it has GoToURLWindow but there is also various LoadURL and such. I plan on going in and manually changing maybe a few lines to make it target="_blank". If any javascript coder can help me with this it be nice.

    I google these two links, not sure if they be helpful.

    stackoverflow.com/questions/1574008/how-to-simulate-target-blank-in-javascript

    snipplr.com/view/918

    -Thanks

  • Hey Ashley, I just recently purchased the license, and I just need you to help me with this. I'm sure this won't take much time for a smart guy like you : ) . Pretty much I want to do a target="_blank" when it does the GoToURLWindow. I open up the c2runtime.js to see if I can do it but I'm not a really good at javascript. Line 9956 seems to be where it is at

    Acts.prototype.GoToURLWindow = function (url, tag) .

    Here's a link I google.

    stackoverflow.com/questions/1574008/how-to-simulate-target-blank-in-javascript

    So they click on something in the game and it opens a new tab but I want target="_blank" code, so I can go in and manually change it.

  • Sounds Good Ashley, nice to get a reply from you. Hope to learn what you know! <img src="smileys/smiley4.gif" border="0" align="middle" />

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Link to .capx file (required!):

    http://

    Steps to reproduce:

    1. Well can you put a feature so that under the groups you can

    just click Add Event instead of right clicking on the group and clicking

    add events, just takes more time and not convenient.

    2.

    3.

    Observed result:

    Right click on Groups to add sub events for that group

    Expected result:

    Add event should be below the group so i can just click it once

    to add events in that group, maybe there's a way to turn on this

    feature that I don't know about.

    Browsers affected:

    Chrome: yes/no

    Firefox: yes/no

    Internet Explorer: yes/no

    Operating system & service pack:

    64 bit window 7

    Construct 2 version:

    r114