megatronx's Recent Forum Activity

  • Ashley Cheers

  • Depends on how your parsing. I suspect your tokenating. So every time you tokenate the search begins back at 0. If you tokenate your self by actively tracking your current character position. compare until next comma then you can save time. But otherwise your going to lose performance. So as an example mega, super, fun happy, time If you for some reason need time while(word != "time") word = tokenate( srtring, loopindex, ",") **** let's ignore the permanent stuck loop this would require. anyway this would search through your string 5 times to find time. What the system has to do is create a string for eaching parsing into a word. So the system is going to create an array every tick. then destroy the array. So your asking for an array to be created an destroyed. Where as if you broke it into an array at the start of layout you could just do array.find("time") and then avoid creating a tokenized array at the beginning of the layout. now however if you instead did if( string.find("time") ) then that would be faster than tokenized parsing. Where as in an array. once you compare the first you move on to the second.

    Ok, working on understanding it. Let me show you what I have, and you'll let me know what you think about it. This part is being called on function.

    [attachment=0:qkpuexdw][/attachment:qkpuexdw]

  • Depends on what you need. If this is an occasional search. Then just stick with parsing text. However if this is action you need to do per tick. Then turn your text into an array by parsing the string at least once.

    I see. Yes it is an action to do per tick. So you're saying that there is a performance difference between those two?

    EDIT: let me elaborate. So I have array with Items in it like this one [["Mace'Mele'60'50'30'30'200'A mace"]], and then when my character is attacking, function is being called to check what weapon he has, and then acts accordingly, parsing trough this line of text to get the data... hmm so now when I'm thinking about it it is not per tick... hmmm... I might need to take a day off ...

  • Yip, it works well. I am afriad of ' as a divider - lol

    I use | I've <-messed up too often using '

    ------------------------------------------------------------------------------------------------------------
    
    Items Arrays
    
    String. Parser ' /if not loading, search for missing " ' " and accidental " ` "  ","
    ------------------------------------------------------------------------------------------------------------
    [/code:2a96nc96]
    
    I use || when parsing trough Arrays files. I also use _ to parse between A'B_ 
    
    Although maybe it's the uk kb im using but ' is just above my right shift so it's not problematic.
  • I have pretty much all the game making engines and I now spend most of my development time for html5 games using construct2. I can do more, and do it more quickly using construct2.

    It has taken me a number of months to learn the software (still learning) and what took 1000's of events can now be done in 100's - that is called acquired knowledge.

    I preferred GM because I spent so much time with it, but now that veiw has changed and I favor C2 now.

    Yeah. Same here buddy. Made a lot of prototypes, first in GF, then discovered C1, but even still when moved in to C2 it took me several more prototypes to really feel confident with what I was doing. Same goes for everything else really.

  • Dude, you got to go to manual and tutorials section and learn the basics of how editor works. You can drag and move, copy and paste, call functions and there is search too among many others.

  • It shouldn't really matter.

    I would say array is the better option, less chances of error in finding what you want. And probably marginally faster depending how you plan to parse your text. If you are talking a small little chunk of text then go that way. If you talking 50 plus entries, and especially in the 100's, 1000's then array were designed for that.

    I still parse text that i fetch from an array(array within an array - lol), maybe that is an option.

    We're doing exactly same thing.

    [

    ["Mace'Mele'60'50'30'30'200'A mace"]]

    Finding that faster to write, then if it would be in separated array fields. But in separated array fields it is easier to read and the conditions end up being shorter. Thought something could convince me to change the way I'm doing it right now.

  • I'm bumping this.

  • Ashley is it possible to make such an option for a future release?

    I looked for plugins no one can provide it :/

    I requested it some time ago already. Actually the topic had quite a bit of response. https://www.scirra.com/forum/viewtopic.php?f=146&t=92740&p=723743&hilit=megatronx+solid#p723743 But nothing as of yet unfortunately. This option is crucial for certain things.

  • Neat. I'm getting Red Alert vibe. When you have more, let me know, and I can make you some killer soundtrack for it.

  • Looks really good.

    Could we have a chat about how you're going to integrate custom levels, tablet and dlc?!

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads

    It's funny cause no games inspire me anymore. What inspires me are the ideas I have and the picture of how people will feel experiencing it.

megatronx's avatar

megatronx

Member since 25 Sep, 2008

Twitter
megatronx has 1 followers

Connect with megatronx

Trophy Case

  • 16-Year Club
  • Forum Contributor Made 100 posts in the forums
  • Forum Patron Made 500 posts in the forums
  • Forum Hero Made 1,000 posts in the forums
  • Regular Visitor Visited Construct.net 7 days in a row
  • Steady Visitor Visited Construct.net 30 days in a row
  • RTFM Read the fabulous manual
  • Email Verified

Progress

23/44
How to earn trophies