C-7's Forum Posts

  • The gist:

    Every tick

    If object.opacity>0 | set opacity to object.opacity-100*dt

    It will fade out in one second. Switch to > and + to fade in. Change the values to chande the speed, but multiply by dt to make it framerate independent and smooth.

  • I've heard countless people claim doing a for each ordered loop for sorting is the best way. Most of these people don't use it in any complex or detailed settings. It is a nightmare if you ever use any objects other than just one type (ie, if you mixed tiled backgrounds with sprites--you can't mix object types in families). Like anywhere else, I'll recommend you stick with the z-sorter plugin (and use rex's updated one, too). You can choose how often you sort in a single event. Instead of every tick, use every few milliseconds or whatever and then call the "sort objects on layer" action. It really is the best way to go currently, and you can modify things easily now, too! If you need to manually move an object in front of another, you can with C2's relatively new z-ordering events. Just call that after the z-sorter plugin call and voila!

    As far as shadowing goes, perhaps a second layer could be your solution? That's my solution to the same problem in Courier. It isn't perfect, requires a little more manual placement and fixes, and can cause the player to occasionally have a shadow over (or not over) them at the wrong moment, but it sure beats doubling your objects and running anything CPU-intensive.

    In actuality, I have several layers that I use for my game, really, as a solution to most of your problems.

    Overshadow -- shadows on objects over the player permanently

    Over -- things like rooftops always over the player

    Player/objects--my z-sorted layer. Really not a ton of stuff on it in many cases

    Structure shadows--shadows on structures like buildings or cliffs

    Structures--buildings and such

    Regular shadows--shadows like you're doing now

    Ground--duh

    I make the objects never overlap between the shadow layers, and it covers the majority of instances that I would require. The only downside is not getting shadows on the player, but that's a small trade-off for the tons of fixes and flexibility I get. You could run a darken/tint shader on the player if they overlap a shadow and semi-fix that issue, but otherwise this fixes about everything in a simple, easy-on-the-CPU kind of way.

    I get a little more mileage since my game's perspective is more of a 3/4 view straight-on instead of isometric, so I can get away with simpler shadows at times. Also, making the shadows blurrier makes them not stand out too much AND you can blend/fake things. I have a non-uniform blobby shadow that I've gotten a ton of use out of with just stretching and rotating it to be "close" to the shadow that object would cast.

    Our games are set up differently, but this all should be worth looking into to see if it helps. Scroll through the few pages of my Courier thread to see a few more of my shadowing examples because my shadows don't overlap, and buildings cast shadows on themselves, too--which is more useful to me since I don't pre-draw any of them in an image editor, but rather build them out of parts and textures in C2.

    Good luck!

    Bonus pro-tip: You can import some shadows objects as a tiled background, but import it upside-down. Rotate it right-side up in the editor. Now, when you resize it, you crop instead of distorting. Now you can have multiple different partial shadows using the same object. Very useful in a some rather specific instances. Also, if you need the bottom of the shadow to be round or something instead of flat, use one of your multi-purpose shape or blob shadows to fix the bottom edge. Using a uniform opacity for the layer, no-one will ever know you combined two objects to make the shadow.

  • I think the moving left/right controls should be "key is down" conditions and NOT "on key pressed." Otherwise, it only triggers for a single tick.

  • This is a job for sub-events! Create your key press condition

    On C Pressed.       Now right-click on it and add a sub event (I think S is the shortcut). Now add your other conditions

    -------Box.Whatever = "closed" | open the box, set box.whatever to "open"

    -------Else | close the box, set box.whatever to "closed"

    The indentations help your know you're in a sub event. Basically, when you press C, it then triggers evaluating the other conditions. How you were trying before wouldn't work because the "else" of on C pressed is infinite. Sub events fix this by letting you run multiple layers/tiers of conditions off of one action.

    I hope that solves it for you!

  • Thanks everyone! Here's a screenshot inside the big mansion in the forest area. I can do a little more with fancy effects in these enclosed spaces and still achieve similar performance to the larger, more npc-heavy, outdoor areas, so I do!

    <img src="http://www.adamprack.com/materials/mansion2.png" border="0" />

    I hope you enjoy it! More to come, as always!

  • From a performance standpoint, I would take the time to cut out (or make!) your resources in manageable objects that you could use to assemble your levels in C2's editor. You would drastically improve memory load and file sizes. That, and it'll be easier to make changes later. The temptation to fully make your levels in Photoshop is there, but I would suggest avoiding that route. I don't necessarily mean tiles, though that is a wonderful option for many, but making smaller and more flexible objects is something you would thank yourself for later.

    Also, I feel it increases the likelihood of completing the game--a very real concern for indie developers.

  • It seems pretty neat. Something that would make it stellar: have it follow zoom rates and scrolling like other objects in the game when placed on a layer so it could be made into the game world.

  • Hah, that looks like fun! It's fun to watch, too, so keep it up!

  • Here's another shot from Courier. I finally have characters in!

    <img src="http://www.adamprack.com/materials/chara6.png" border="0">

    By the way, you can follow more news about Courier on twitter.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I love our IRC (though it has its dull moments :-P ). I've met and talked with some really awesome people, have gotten some good help, and the talk is generally pretty mature. I, honestly, haven't found a better indie game development irc yet--the rest typically devolve into phallic jokes and poor grammar. If you're on the fence, get off it and come hang out in the esper.net #construct irc with the rest of us!

    As far as the community goes, it isn't the biggest around, but its definitely active, and a lot of the individual posts are of a higher quality than you can sometimes achieve elsewhere.

  • And, as promised, here are the NPC's!

    <img src="http://www.adamprack.com/materials/chara5.png" border="0" />

    <img src="http://www.adamprack.com/materials/chara4.png" border="0" />

  • It's just as easy at runtime.

    Every Tick > Move Hairpiece Z-order to Head (in front), etc.

  • BluePhaze a mistake I made was not putting it in the Program Files\Spriter folder. Throw the exe in there and run it from there and it should work (so long as you've installed it outright at least once). Unless this is something different...

  • This is all fantastic news! Now, if only we could convince them to incorporate WebGL...

    So apparently Nintendo and Sony are both seeing that indies without giant corporate overhead may be a safer bet in the not-too-far-off future.

  • This is really fantastic stuff! And it all seems to really be coming together! You're fixing issues extremely quickly, and the multiple timelines are fantastic for adding more subtlety and freedom to my animations. Thanks a ton for this awesome tool!