SullyTheStrange's Forum Posts

  • Could you post the capx file so we can see it in action? It's probably a simple mistake; maybe your animation has 30 frames, meaning the last frame is frame number 29 (because the first frame is 0, not 1!), so the "Sprite animation frame = 30" event never runs.

  • Well first of all, this should be in the "How do I...?" forums, the place for asking questions like this. <img src="smileys/smiley2.gif" border="0" align="middle" />

    Second, the easiest way to do it is to make all 3 sprites separate frames of an animation. If you set the animation speed to 0, it won't change frame unless you change it yourself. So then you can make an event that says:

    Every 4 seconds

    -- System: Create Sprite at x,y

    -- Sprite: Set animation frame to random(0,3)

    "random(0,3)" will pick a random number out of 0, 1, or 2; 3 isn't included. Another way to say it is "choose(0,1,2)", which will randomly pick one of those three numbers.

  • I wholeheartedly agree with this ENTIRE list. All great ideas and they'd be really helpful additions. It would take C2 a dozen steps closer to being perfect. <img src="smileys/smiley4.gif" border="0" align="middle" />

  • dl.dropbox.com/u/19702035/cuttest.capx

    Here's a commented example showing it off. Unfortunately, making the cut at an angle (probably) takes some math which is just too extreme for me to be doing at 6 in the morning. <img src="smileys/smiley36.gif" border="0" align="middle" />

    Edit: I actually just thought of a simpler way that cuts out all the math! But now I'm passing out on the couch, so gimme a few hours and then I'll do it

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Can't check the link right now, but that's great news. Keep up the good work guys, can't wait to use it!

    I read something from another poster (not one of you guys) that it would actually be an official plugin rather than a third party one. Is that true? That's awesome if it is. <img src="smileys/smiley4.gif" border="0" align="middle" />

  • Oh it's possible alright. <img src="smileys/smiley2.gif" border="0" align="middle" />

    You'd need to have two copies of the sprite and then make use of the blend modes (check out the example capx for that) to make part of one sprite invisible and the corresponding part of the other sprite invisible. It gets trickier if you want to make the cut at an angle or off-center, but definitely doable.

    I can't make an example right now because I'm on my phone, but let me know if you need one later on.

  • You could use the min() and max() expressions. Min(x, y) returns whichever value is smaller, so min(360, 428) would return 360. Opposite for max, so max(0,-5) would return 0. Other methods might work better depending on how you have it set up (I'm on my phone right know, can't check the file myself)

  • Ahhh yeah you're right keepee. I could make it even more needlessly complicated by checking for that too... or he could just use your method. Either way's fine by me. <img src="smileys/smiley36.gif" border="0" align="middle" />

  • Try clicking the File button in the upper right and then "Preferences" on the bottom, then "Reset Dialogues" towards the bottom of that. Usually solves problems like these!

  • A simpler (and yet, not really <img src="smileys/smiley17.gif" border="0" align="middle" />) way would be what you had, with a small addition:

    N = round(N)? (N&".00"):(round(N*100)/100)

    Using a fancy query thingy... It's actually not simpler at all, it's just a different kind of complicated. Simpler to ME because I use stuff like this all the time. <img src="smileys/smiley36.gif" border="0" align="middle" />

    If you've never seen this before, it's checking to see if there even ARE any decimals; if there aren't, just add a ".00" at the end. If there are, do what you originally do.

    (Edit: removed a pair of parentheses from the expression, just tested it and it gave a syntax error. Other than that it works fine)

  • Interesting video, thanks for posting that Kyatric. I've been mulling over the possibility of a F2P version of the game I'm making and that definitely gave me some ideas. <img src="smileys/smiley20.gif" border="0" align="middle" />

  • Nice creep? Is that a good thing or a bad thing? <img src="smileys/smiley17.gif" border="0" align="middle" />

    Well, seems my fears are confirmed. It's my computer... *sigh* This is what it looks like for me, by the way (doesn't show the crazy flickering though):

    <img src="http://oi46.tinypic.com/2ihpcf7.jpg" border="0" />

  • No prob! Glad the easy fix worked. <img src="smileys/smiley2.gif" border="0" align="middle" />

  • Try swapping out the "AqueousSlime2 | Spawn Aqueous on layer 3" action for a "System | Create Object Aqueous on layer 3 at AqueousSlime2.X, AqueousSlime2.Y" action instead. I'm not sure if that will fix it, but the Sprite's spawn object action has caused a lot of problems for me in the past, so it's worth trying for a (hopefully) easy fix!

  • I don't want to post this as a glitch just yet, since I don't have any other computer to test it on at the moment. I have a very simple capx here -- a sprite with a bumpmap over it, that messes up like CRAZY when it's near the edge of the screen.

    The problem's most likely on my end, unfortunately.I've got the most up to date graphics drivers and I even tried reinstalling them, but it didn't change a thing. Oh, and several other bumpmap examples work perfectly -- this is the only one giving me issues.

    Just to find out for sure, can you guys take a look and see what happens on your screen? Walk left and right with the Epic Red Square Hero Man(TM) and let me know if the sprite in the center starts flipping out or not. <img src="smileys/smiley36.gif" border="0" align="middle" />

    db.tt/Bt5qT8Kk