digitalsoapbox's Forum Posts

  • why not just use a canvas shader? so we dont have to apply the fx from C2? having it inside directly.

    those extra characters look interesting the little heart, that type of extra stuff wold be actually awesome to have.

    image results of using Adjust HSL FX

    The issue is having multiple colors/font weights in the same text run, which sprite fonts don't currently support. Ashley mentioned a markup language to achieve this, and as an example Unity uses a system mostly similar to HTML and I've found it to be a good solution. It has an option to generate a separate texture atlas for every required font weight, and handles them in a way comparable to having multiple animation frames in C2 - a list of assigned images, basically. It'd be nice to see a similar system in C2 and would open up a lot of interesting possibilities with fonts, even if for the time being we have to generate each texture atlas outside of C2.

  • This is outstanding, I'm a fan of these kind of visual additions in games and I'm definitely looking forward to the further progress!

    That might be a stupid question and a bit offtopic but.. how do you get the grenade to rotate in the way that pixels don't "change" their angle? Like it doesn't rotate smoothly as it normally does in C2 but instead it rotates like it would be rotated in Photoshop or other softwares. That's how I want to rotate my objects in my project I am working on but I thought it's impossible in C2.

    It's running in low res, 640x360, and the Sampling is set to Point. Nothing fancy going on, it's just a sprite with a bullet behavior.

  • C2 games already run great on Xbox One. I ran a few already for testing. The only holdup is Xbox Live.

    Ashley

    That's quite a hold up. Can anything be done to get things moving in this direction? When it last came up I think you posted something about waiting for info from Microsoft?

    There's also some questions as to what KIND of C2 games can run on XB1. Seems anything that pushes the engine graphically doesn't run very well at all. Either way, we can't release on XB1 until support is finished, so...

  • Gigatron

    Just noticed it seems to be ignoring the sprite's alpha channel - try your demo against a blue background.

  • That makes sense. Thanks for the info. I still wonder why the results are so different. Maybe C2's renderer composites the results separately? Seems like a bug in the way shaders are handled. Or if not a bug an oversight, because this could potentially affect any object that uses more than one shader: tint + additive, blur + noise, etc.

  • digitalsoapbox

    Just included tint inside this shader this do exactly the same fx (opacity+tint) at the same time; tint+opacity combined in one shader;

    Can you download and test this one again ?

    Btw i have 60fps with chrome in my 3d starsfield example;

    http://gigatron3k.free.fr/html5/C2/FX/opacity.rar

    Yes, works perfectly. Is there something in the default tint shader messing up the behavior of your opacity shader?

  • Zebbi

    Most game engines I've run across do it.

  • Zebbi

    Yes, that is a fairly basic feature that you'd think would be obviously useful. As would being able to prevent solid objects from checking for collisions with other objects of the same type. An example of this would be solid/jumpthrough platforms - why would they ever need to check if they're colliding with the same object type next to them, when they're used to build platforms? That's just silly and C2 should include a way to disable such checks. While I'm sure there's some optimization in the engine to reduce the impact of collisions occurring in this fashion, automatic will never be as optimized as (optional) manual settings.

  • > Zebbi did you ever hear back on this other than in this forum?

    >

    Unfortunately, no, it looks like it's going ignored, I'm afraid! Maybe we can ask Ashley nicely again.

    Being able to ignore specific solid/solid types seems like a no-brainer, especially in terms of optimizing collisions. Unity has layer-based collision (https://docs.unity3d.com/Manual/LayerBasedCollision.html), and it's not hard to imagine why similar functionality, or some kind of tag system for collisions (also in most other engines), would be useful in a 2D game as well. Every little bit of optimization can help, across all platforms. Hopefully Ashley and co look into this. Even extending it to other objects types, like bullets, would be great - bullets may not need to track if they're colliding/overlapping with each other at any point, for example, so that check could be ignored - though I suppose any benefits arising from that scenario would depend on how C2 is checking for collision/overlap in those circumstances to begin with. Heck, just being able to manually set collision cell size (this matters a lot when the "camera" zooms in/out) instead of having it set automatically to theoretically avoid misuse by less experienced users would be a big step...I've never understood the "we don't include this feature because some people may be confused by it" mindset that exists around C2 development.

  • > Gigatron

    > I just tried this shader with the Tint shader also applied, and the framerate dropped very low. Is your shader intended to work with other shaders?

    >

    I have tested tint + opacity... you must have 60 fps without framerate loss...

    Have you a .capx file to make test for me ?

    Just add the tint shader to the star sprite in your demo .capx - it slows down even more than the version without using your opacity shader. This is on a GTX 980 (newest drivers), Windows 10, in Chrome. It's topping out at 15fps. If the tint shader is put on the same layer as the star sprite, it works fine - but I'm hoping there's a way to get it functioning with the tint shader on a sprite that also uses your opacity shader.

  • Gigatron

    I just tried this shader with the Tint shader also applied, and the framerate dropped very low. Is your shader intended to work with other shaders?

  • Lots of new updates & features coming to Sombrero next week! New Arena, new Weapon Power-Up and more! Just in time for the holidays .

    Read about new content and tweaks here:

    http://store.steampowered.com/app/472690/

  • Wow! This looks amazing! Never expected to see this kind of lighting in C2! I really love how the grenade explosions light the scene!!!

    No performance issues here, but my desktop doesn't have that low of a specs...

    This part of the forum is a bit obscured, I believe this topic needs more attention!

    Keep up the good work!

    Glad to hear performance is okay. The test itself is pretty low-res (640x360) so I probably need to try a higher resolution and optimize from there. I'm not sure what other forum to put it in, since it's not really an add-on/plugin, but events/actions that use the built-in objects a lot more efficiently than their default behaviors...but I'm open to suggestions .

  • rexrainbow

    Is there a way to get the image used in on an object if it's from a tileset? Does TMXImporterV2.TilesetName & TMXImporterV2.TilesetFrame work for objects?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • You could also create a second image point and use that as the reference when you're scaling.

    Or if you didn't want to deal with creating a second image point, and want to scale from the center bottom, you could scale from sprite.x, sprite.y+sprite.height/2.