locohost's Forum Posts

  • I'm basically familiar with using the Ajax plugin to load files. I've made it work before. I fully understand CSS. In C2, can I load a CSS stylesheet to style my form text boxes, buttons and etc?

  • That works? So the arrays will dynamically size as elements are pushed on the back? I'll give it a try.

  • Hey

    I think the dummy object that has all the same attribs as the Fighter family is the idea. Then in the first Family Pick event, it will by my Fighter, I'll store his data in the dummy Fighter. Then in second Family Pick event, I'll be picking enemy Fighters. I think this should work and is not too much of a hack

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • cacotigon I did read your tutorial. It's very good

    I suppose I was hoping for something not involving any dummy objects or extra variables. Appears they are necessary to do this.

  • I've been coding for over 30 years with nearly every language you can think of. Yes I know C# very well

    And you're absolutely right, I need to make a full, detailed pass through the C2 manual

  • Yes I saw that. However, the first 10 positions are actually filled by default. So if you you array.push another value on the back, you're starting at position 11 and going forward. I thought perhaps that array.clear on create would do something but it doesn't.

  • My array starts off with zeros in the first 10 X slots. I'm not putting them in there. Why does this happen?

  • When I move on of my game Tokens to a new spot, I want to check to see if an enemy Token is in LOS. If it is, set it to visible. My idea was to iterate every Token with Token.Foe = true and check LOS to just those tokens, skipping my own Tokens.

    My compromise is I don't bother with checking LOS to just Foes. It's checks LOS to all Tokens. So mine as well. Which is fine for now, but it doesn't feel right :-/

  • Yep that's the answer. I was looking for chr() function and asc() and anything but newline :-/

    Thanks again

  • I have a large text box. I want to append text but start a new line each time. Can this be done?

  • Oh, forgot to mention, I'm using the mouse scroll wheel to scale up and down in desktop browser. Working well

  • Yup, I use that approach too.

    If your moving objects between different scaled layers, keep in mind this can cause errors, the likes of "drawing instance on wrong layer" ones.

    The only layer that isn't scaling is the HUD. It's working!

  • Here's a related idea: If I want to leave the HUD layer the same size (not scale), I'm thinking I can scale all the other layers equally and leave the HUD normal size.

  • Thank you, thank you, thank you, thank you for the fantastic help guys!!!

  • :)

    zoom out

    set layoutscale = lerp(layoutscale, (viewportRight("hud") / layoutwidth), 0.5*dt)

    zoom back in

    set layoutscale = lerp(layoutscale, 1, 0.5*dt)

    lennaert: Tried this. You have keep clicking the zoom button over and over and over. Needs to be in a loop I guess.