Navigation

    Fuze Arena Logo
    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Popular
    • Users
    • Groups
    • Help
    • Discord

    Maybe you can help me

    Comments & Feedback
    2
    3
    179
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • P
      petermeisenstein F last edited by

      So guys
      I have the following problem
      i have a input and the input is "print()"
      now i know print is 6 characters long

      maybe you understand what i want

      starter=5
      if strcontains(console,"print()")then
      length=len(console)
      something=length-starter
      for starter to lenght loop
      print[i]
      //it should go higher and higher
      //i want to start from one positon who is i think always 5

      i know this is totally understandeble but maybe you can help me
      my goal is
      I know that print is usually 6 long if print is 7 long i have to go one step more

      maybe you understand it

      1 Reply Last reply Reply Quote 0
      • PB____
        PB____ last edited by

        Have you looked at the "Helping an Interpreter" project by Mario Bodemann? It sounds like you might be trying to do something similar, it was part of the 2nd FUZE Game Jam

        The game code should be: FUZEGJ0203
        Maybe that project could help you with this?

        P 1 Reply Last reply Reply Quote 0
        • P
          petermeisenstein F @PB____ last edited by petermeisenstein

          @PB____ Solved it and with less lines then mario did.
          In fact long time ago i looked in marios code but its very complex stuff.
          Its very impressive and on an higher level then my code.
          Its not exact that what mario did.
          For example i think he goes trough the entire string break it down into tokens and so on.

          1 Reply Last reply Reply Quote 1
          • First post
            Last post