Mike at BrashMonkey's Recent Forum Activity

  • Hi Bballer1337, (replies inline)

    Thanks for the earlier response, I've been playing around and got a lot of things to work, and it's great so far. Unfortunately I have run into some concerns.

    "f?i?r?s?t?,? ?n?o?t?e? ?t?h?a?t? ?I? ?s?e?n?t? ?a?n? ?e?-?m?a?i?l? ?a?b?o?u?t? ?t?h?i?s? ?t?o? ?s?u?p?p?o?r?t? ?a?l?r?e?a?d?y?,? ?j?u?s?t? ?p?o?s?t?i?n?g? ?a? ?b?i?t? ?i?n? ?a? ?p?u?b?l?i?c? ?m?a?n?n?e?r?.? ?T?h?e? ?p?l?u?s?-?s?i?d?e? ?i?s? ?t?h?i?s? ?c?o?u?l?d? ?h?e?l?p? ?o?t?h?e?r?s? ?o?r? ?I? ?c?o?u?l?d? ?g?e?t? ?o?t?h?e?r? ?p?e?o?p?l?e?'?s? ?f?e?e?d?b?a?c?k?,? ?t?h?e? ?d?o?w?n?-?s?i?d?e? ?i?s? ?t?h?a?t? ?i?t?'?s? ?a? ?p?r?i?v?a?t?e? ?p?r?o?j?e?c?t? ?w?i?t?h? ?c?o?n?f?i?d?e?n?t?i?a?l? ?i?n?f?o? ?a?n?d? ?a?r?t? ?s?o? ?I? ?c?a?n?'?t? ?s?h?a?r?e? ?t?h?e? ?C?A?P?X?.? OK, apparently I can't get help through private channels, so I have to go off messy explanations since I cannot publicly share screenshots or the CAPX or anything."

    You certainly can get help through private channels, but some times it takes time for us to be able to help. It would make things go as quickly as possible if you share your project files with Edgar (Spriter's programmer) so we can directly look into all aspects of the data and code related to the problems.

    "Anyway, I'm trying to figure out how to set up enemies in my 2D action game. In it, you can attack with one character and hit an enemy. I figured having a family for all enemies with common instance variables and behaviors would be a good idea, so I did that. For the object, I set it to the SCML one. Probably I'll do it so that each enemy has its own scml file, for about 20 different enemy types (including bosses)."

    Please take the time to be extra-redundant with your explanations.... this is complicated stuff, and very easy to misunderstand...especially once you start using words like "it" after having mentioned multiple things just previously. In this case, you say, "for the object".. which object? When you say you set "it" to the SCML one.. what do you set, and to which scml one?

    "The issue is that the SCML objects have their own collision box and this is used by Construct 2 for:

    • general collision detection, of course
    • shadows (shadow light object + shadow caster behavior)
    • interactions between solid objects"

    Are you referring to collision boxes that you can manually add to Spriter animations, or some kind of C2 generated "bounding box?"

    "When checking interactions between two objects with the "solid" behavior, C2 uses the collision mask of the object with the behavior. I can adjust this slightly by linking the scml to another object and changing said object, but in the end its collision mask is not going to match every frame of every animation--it's just going to be something static. So... what am I supposed to do if an enemy is say, lying down on the ground or in some other pose where their shape changes dramatically and a single rough & static collision mask won't fit the object?"

    It depends enormously on what type of game you're making. I think you'd be amazed at how basic such collision shapes and coding was for all classic action/platformer games. You'd really have to explain in more detail what you're after... can players jump on top of enemies who are lying on the ground? What is your desired effect?

    "Shadow issue is basically the same thing from what I can see, just a different application. It's using the SCML object (or in the player character's case, the sprite object that is pinned to the SCML object) and using that to draw shadows."

    Again, we'd really need to be visual examples of your desired effect. Is this game overhead, isometric, or side scroller, for example? What's happening with these shadows and how accurate/detailed does their shapes have to be?

    "I tried maaaaany different things and did hours of researching or I wouldn't bother rambling about my problem here. There were issues with putting the shadow caster behaviors on many different places (such as the sprites) and I think it's just going to be difficult to handle this when it's not integrated into the Spriter object behavior and I don't fully understand how exactly the Spriter object does what it does."

    We really need to know exactly what desired effect you're after before we can explore possible solutions.

    "I could do without shadows, but objects not having solid behaviors would just look and function oddly. As for the collisions, it's extremely confusing and I'm not sure what to do but at least I have control over the interactions, unlike the Solid behavior."

    I'm not sure what you're after, behaviorally and visually in game, so can't offer useful advice.

    "UPDATE: After a ton of thinking, research, and coding, I managed to work around the collision boxes issue by using families, containers, and some crazy code and as of right now I think I've got everything working, though it needs more testing. I still haven't fixed the issue with the solid or shadow caster behaviors though."

    Glad you're making some progress, but we can't help without much more detailed info regarding your desired results.

    "I also have some issues with Spriter I'd like report... hopefully it's just me being bad, which it usually is.

    Spriter Issues

    Sometimes renaming files at the top-left doesn't work, if I try to like, rename something and then rename another thing. I haven't been able to figure out what exactly causes or fixes the issue but it can be somewhat inconvenient when I keep double-clicking and it won't rename. Maybe there is some trick to it I'm missing or maybe it's a bug, I don't know."

    WOW! I never knew you could rename sprites in the z-order palette, BUT don't understand any reason to do it,as it does not rename the file itself. I think the very ability to rename it there is a bug and not a feature. I suggest you avoid renaming images in the z-order palette. However in the Hierarchy palette I can see how renaming bones is useful.

    " Meta data: when I adjust basically anything in the timeline, the existing meta data I have (just tags for now, but I want to try out variables in C2 as well, since I haven't found anything on how they work) just disappears. The key frames for them or whatever disappear and I have to re-add them, which is... well, obviously not cool."

    Could you possible make a screen recording of this happening. it might be user error and might be a bug, and either way, footage of it happening will help us resolve it.

    "I feel like I'm doing something wrong in adjusting the tags, but I can't figure out what. :

    As always, thanks for any help."

    We'll certainly do our best to help you resolve all these issues. Again, privately sending us your project is the fastest way to get concrete help.

    "Update 2: Meta tags just... aren't working for me. Aside from being glitchy in Spriter, after several hours and various code tests I cannot get the different tags to function correctly in C2 either. I checked the JSON file and it seems like it's right (though I couldn't tell you confidently without a little more info about the format) but I'm just having no luck."

    I've had both features work for me perfectly in Spriter and in C2, so we really need to see exactly what you're doing and whats happening to figure out the problem. It certainly could be a bug or bugs we just managed to accidentally avoid through different work flow etc. Hopefully we can find out together and quickly resolve it.

    cheers.

    -Mike at BrashMonkey

  • My thinking was that the new pictures would take on the custom pivot point because they were all the same size as the original art. Regardless, I'll just start over using the bones exclusively. Thanks for your help and all your work on the plugin.

    -Ben

    You likely don't need to start over. There's a fast way to copy your pivot points to images of same name and same size. (if they are in a different sub-folder as the original images.)

    look here : https://brashmonkey.com/spriter_manual/ ... ffects.htm

    At the bold text just before step 3

    cheers.

    -Mike at BrashMonkey

  • lucid Great to see the Spriter plugin doing so well.

    Now to hit you with a problem...I'm sorry. I was putting together Spriter Art Pack for the store based on some zombie animations I did last year. In the middle of animating, I thought I would test out the Character Pack swap and got the attached problem. Kind of a bummer. The transparent art on the right picture is just a guide image. Not sure why the art isn't matching up. I went through a lot of trouble getting all of the body parts to match up exactly so I wouldn't think that's the problem. I'm using Version 7. Any help is appreciated.

    It looks like your problem is on your original images you have custom default pivot points set, and in the replacement images you do not. Make sure the default pivot points are in identical places for the original and replacement images, such as knee-joint, base of skull etc.

    cheers.

    -Mike at BrashMonkey

  • Awesome. Glad you were both able to work out good solutions.

    cheers.

  • My first tip is make sure your Spriter object is not needlessly high res. If you need to scale it down to 10 or 25 percent once loaded, so that it's the proper size, you should use Spriter Pro's feature to create a scaled down clone of your project, and use that one instead, as it will reduce load-time and improve performance.

    Aside from that, What I do is add a fade in sprite overlay for the game screen and a loading message which waits for the Spriter object to finish initiating before it fades away to reveal the game screen. If I recall correctly, I just check for the first time the Spriter animation reaches beyond 0.1 seconds.

    I'm also pretty sure once a Spriter object finishes loading its ready to go for all future frames... so you could possibly have hidden/off-screen ones loading during your Splash screen/main menu, so that its ready to go in future layouts.

    cheers.

    -Mike at BrashMonkey

  • I need this too.. I basically want an effect for layers to force the layer to remap to NES or SMS palettes... using only the colors available to those old consoles.

    Anyone have such an effect or is willing to make it?

    Ideally, the user would be able to somehow set the palette for the effect to use at run-time..

  • Every X amount of seconds (like 0.1) then spawn a smoke sprite at the position of the bullet sprite. Give the smoke sprite a fade behavior that will destroy it quickly.

    cheers.

  • No. the number in parenthesis should be the layer number.. for example, the top most layer. probably layer 3.

    Every tick > Set Position > X=ViewportLeft(3)+32, Y=ViewportTop(3) +32

  • Have you tried the pin behavior?

    Otherwise,

    Every tick> set x position to x coordinate of ViewportLeft +whatever number of pixels and set y position to y coordinate of ViewportTop +whatever number of pixels

    cheers.

  • No one could really help you without seeing your capx or at least knowing how big your objects animations are, image sizes, image count, and number of events in your game etc.

    Have you carefully followed the guidelines for keeping your project optimized for best performance?

    cheers.

    -Mike

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • +1 Same problem here.. multiple instances of the same object all end up in the same spot after shake initiates.

    Hopefully this can be fixed.

  • Don't forget, Spriter also has a built in manual (choose help/help in Spriter's menu)

    cheers.

    -Mike at BrashMonkey

Mike at BrashMonkey's avatar

Mike at BrashMonkey

Member since 16 Oct, 2010

Twitter
Mike at BrashMonkey has 4 followers

Trophy Case

  • 14-Year Club
  • Forum Contributor Made 100 posts in the forums
  • Forum Patron Made 500 posts in the forums
  • x2
    Coach One of your tutorials has over 1,000 readers
  • RTFM Read the fabulous manual
  • Email Verified

Progress

19/44
How to earn trophies