Spindle's Forum Posts

  • 10 posts
  • You do not have permission to view this post

  • I'm trying to make a slider with custom graphics, so I figured a simple way is to hide the slider under a sprite and have the sprite change animation to represent the value of the slider. Problem is, it seems that making the slider invisible automatically disables user input on it, sliders seem to ALWAYS appear on top of sprites no matter their Z order, and sliders are not influenced by opacity value.

    Seems really inflexible to me. Is there a way to hide the slider but still have it remain functional?

    Edit: Looks like I needed to set opacity through CSS style (set CSS style "opacity" to "0.0"). Derp. Should've tried that earlier.

  • Adding a separator at the end for the replace function and then removing it with right seems like it was the simplest solution. Thanks for the tip!

    Though I'm curious as to why you said you'd leave the separators at the beginning and end? Wouldn't that create 2 extra blank tokens?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I have a long string of tokens, let's say "A;B;C". I want to select one at random and then remove it from the string, so that when I select another at random, it can't select the one that's already been picked. So if "B" gets selected, it becomes "A;C".

    First goto was replace(string, token&";", "") and this works well, except for when the last token is picked ("C" in the example). Since it doesn't have ";" after it, it doesn't get deleted by the replace function. I had to make a whole different check for if the token selected is the last token in the line.

    Just want to make sure I'm not overthinking/engineering this thing. Am I on the right track?

    Tagged:

  • I was afraid of that. Oh well, thanks for the answer.

  • Hey all, got another question that I thought would've been easy to figure out but couldn't. CC had an option to enable Python scripting in the application so you can write and run your own scripts. Does C2 have a similar function? Looking at the list of addons there was a plugin which seems like it might be useful, but before I start trying to rewrite things in Java, is there a way to enable Python scripting in C2?

    Thanks for any help.

  • Lovely, I think those are just what I'm looking for. Thanks for the help

  • Hey all. The Canvas object allowed you to draw on it in real-time and paste other objects into it and stuff, and I've come to rely on it quite a bit in some of my recent projects. Anyway, I haven't much experience with Construct 2, so at firstish glance I can't seem to find anything equivalent to the Canvas object. I tried searching through the forums but "canvas" generally brings up something else, and I don't have much faith in my search-fu. So, is there an equivalent or alternative to the Canvas object in C2 that I'm missing? Thanks for any help.

  • Ooh, lovely, working pretty much as intended now. Thanks lots <img src="smileys/smiley4.gif" border="0" align="middle" />

  • Heh, that's actually exactly how I'd handle these things in my "early years" playing around in Multimedia Fusion. I just thought it was messy and was trying to brainstorm a more "elegant" solution which didn't rely on an extra object.

    Then again, it's probably the simplest solution, so cheers <img src="smileys/smiley16.gif" border="0" align="middle" />

  • New forums apparently ate my old account, but anyhow... I'm trying to script a simple AI function. Basically, if the enemy sees the player, its alert level changes and it gives chase. I'm trying to make it so that if several enemies are standing next to each other and one of them sees the player, it will also alert all the other enemies within a certain radius.

    I've tried using the Turrent and LOS behaviors with little success. Now, maybe I'm over/under-thinking this and overlooking some kind of useful function, but for some reason I can't seem to figure out how to make this happen. Anyone have some advice?

  • 10 posts