Jesse

Forum Replies Created

Viewing 15 posts - 91 through 105 (of 297 total)
  • Author
    Posts
  • in reply to: invalid digit "x" in octal constant #9553

    Jesse
    Participant

    >Not a bug. Using a leading 0 is how you type numbers in octal with Monkey2.

    Really! That’s kind of weak. It should have a symbol or something that’s different than just 0s.

    in reply to: invalid digit "x" in octal constant #9530

    Jesse
    Participant

    Definitely a bug. Post it on GitHub. Thats the proper way to report bugs.

    in reply to: ReadString in to 2D Array – help Needed! #9349

    Jesse
    Participant

    you need to
    #import “level1.txt”

    in reply to: bit xor #9338

    Jesse
    Participant

    xor = “~”.
    and = “&”
    or = “|”

    in reply to: Color #9245

    Jesse
    Participant

    it works in my MacBook. I will update to the latest version of M2 to make sure it still works or not.
    [Edit]
    My fault, I misunderstood the concept. correction it doesn’t work.

    in reply to: Color #9243

    Jesse
    Participant

    I believe you can do it like this also:
    canvas.Color.R = .5
    canvas.Color.G = .5
    canvas.Color.B = .1
    canvas.Color.A = 1.0
    not much faster then using New with a Struct though. Probably slower.

    in reply to: Module 3d Monkey 2 is free? #9026

    Jesse
    Participant

    LOL. That was funny Mark.

    in reply to: String.To Chars queston #8917

    Jesse
    Participant

    would this work for you?:

    [/crayon]
    in reply to: Updating Class List in Class itself #8840

    Jesse
    Participant

    treat a function as you would use any independent function. with the exception that if the function is inside a class you can only call it by the class instantiation or by using the class name.functionname(). With method you can only call it if it has been instantiated. and only through it’s instance.

    in reply to: Updating Class List in Class itself #8837

    Jesse
    Participant

    As papgar said and that’s how it’s supposed to be.
    also the method moveallright all and drawall should be functions that way there won’t be any confusion on its use. this way you won’t need to use miunit.first.etc.. all you need to do is use unit.moveallright() and unit.drawall()

    in reply to: Updating Class List in Class itself #8833

    Jesse
    Participant

    I am not sure what you mean. Are you extending the list class with your own method or are you using it some other way?
    if you declare the list Global and initialize it only once, it should be possible.

    in reply to: Wasm – 2d water editor – testing #8681

    Jesse
    Participant

    Well Pakz demo works on my 2013 MacBook Air. So OS X is not far off.

    [edit]
    using Safari.

    in reply to: Keycodes #8663

    Jesse
    Participant

    can’t you cast it to an integer? I think that’s what I did to one of my games.

    in reply to: Keycodes #8619

    Jesse
    Participant

    can’t you do this for now?:
    Field keyPress := Key.X
    later
    keyPress = Key.Z

    in reply to: "+=" inconsistency. #8453

    Jesse
    Participant

    I see. But strange still.
    I was going to post the exact code but I have since modified it and can’t exactly remember how I had it that it was giving me wrong values with a Rnd assignment to an integer. I tried to duplicate it but can’t do it anymore. It wasn’t a constant value.
    Oh well it will probably will creep in some other project again.

Viewing 15 posts - 91 through 105 (of 297 total)