newt's Forum Posts

  • Not that I know of. There's the system expressions angledif(a,b), and rotateangle(start,end,step), but nothing to override the normal limit without a few extra events.

  • For sprites you could use a color filter. Just add all the sprite objects to a family,add a variable, then set the family color filter to rgb(variable,variable,variable).

    With the slider changing the variable to 0-255.

  • I'm sure most of us are aware of the issue of using lerp to set a sprite angle because of the fact that it only accepts 0- 360, so anything above 360, or below 0 gets reset.

    That pretty much makes that useless,... but I've figured a way around this issue, and I thought I would share it here to help others, as well as add a suggestion for some future C0.xx update to make it even more useful.

    -> Sprite: Set animation angle to lerp(Sprite.animationangle,Sprite.Value('angle'),1-0.005^timedelta)[/code:1kyx5g52]
    
    Set animation angle is not restricted by the 0-360 limit, so you can set it to what ever value you like.
    However... anyone experimenting on this will probably notice that there is no get Sprite.animation angle.
    You can use a pv instead, but for ease of use, I think the expression is definitely needed.
  • Using a single heart that's square in dimensions loaded to the tiled background object, and scaled to 4 times its original width.

    For example if the heart was 32x 32 scaled to 128x 32

    On damage received

    heart set width to heart.width- 32

  • <img src="http://dl.dropbox.com/u/666516/revolver.png">

    0-o

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Yeah, it can tile infinitely, but as you said it probably wouldn't work with pixel art.

    You would probably do better with the tiled background for that.

  • kwarn

    Your comparison of Flash and Html5 doesn't take into account the fact that Html5 is still in its infancy, and Flash is well... ancient in geek speak.

    Also... pretty sure you have to have javascript enabled to run flash on a browser.

    People say there will be an EXE exporter, but because Construct 2 is limiting itself to html5 features, you will have exe's with html5 compatible features only, which is bad

    Who said it would be like that?

    There's no reason an exe exporter would be limited to Html5 features.

  • [quote:2thuwlzu]GetToken(string, N [, delimiter])

    Returns the Nth token in string using delimiter. The default delimiter is comma (,) if you do not specify your own. Examples: GetToken("a,b,c", 2) gives "b", GetToken("one|two|three|four", 2, "|") gives "two"

    You could use that, but I think you would have to force a delimiter when the person is typing in the editbox.

  • If you don't mind adding an extra object the list box has a built in sort that will arrange alphanumerically.

    + HashTable: For each key

    -> ListBox: Add line HashTable.Currentkey

  • Oops.

    Ehhh zero based can be confusing, course not as much as 1 based.

    Perhaps I was confusing random(0) for random(1)... oh wait.

    um, where do i find random?! i mean, is it in system?! or......?!

    Its under the system>math>generate random number.

  • Heh, well that's an interesting idea, but yeah exports don't keep the caption.

  • Might run the debugger. It should tell you how many instances exist.

    If many objects exist, then they are either invisible, off screen, or behind something.

    Other wise you will have an event doing something you didn't remember, as there is no bug that does anything like this.

  • A 50/50 chance would be random(1), where the out come would be either 0, or 1.

    So if random(1) equals 0 do this,

    and random(1) equals 1 do that.

    Note each time you do a comparison using random it will generate a new number. If you want to choose from one "roll" you will need to save the out put to a variable first, and then compare the variable is = 1, or 0.