Search Unity

[RELEASED] Corgi Engine - Complete 2D/2.5D Platformer [new v8.0 : advanced damage system]

Discussion in 'Assets and Asset Store' started by reuno, Dec 18, 2014.

  1. Muppo

    Muppo

    Joined:
    Sep 28, 2016
    Posts:
    242
    @captnhanky You can use teleporters for that if you don't mind camera teleports as well instead of a smooth non visible transition, otherwise you have to override camera script with your own settings.
     
  2. bravery

    bravery

    Joined:
    Mar 26, 2009
    Posts:
    270
    Hi,

    I'm playing with the level called, Retro Forest, and as I can see I can fire the gun in front of me, but I can't fire the gun when I'm pointing up-word or down-ward for example, can any one let me know how to do so?
     
  3. Grafos

    Grafos

    Joined:
    Aug 30, 2011
    Posts:
    231
    A suggestion regarding the CharacterJump Ability for future updates. A pre-jump/post-jump delay option with added animation variables so that we can have "before take off" and "landing" animations.
     
  4. Muppo

    Muppo

    Joined:
    Sep 28, 2016
    Posts:
    242
    I think that was already requested some time ago, @Grafos , if not, I'm in too.

    @bravery , there is an option on the weapon settings to set the max and min angle the player can shot, if that's what you're asking for.
     
    Grafos likes this.
  5. bravery

    bravery

    Joined:
    Mar 26, 2009
    Posts:
    270
    Thanks for your reply
    I'm asking about being able to shoot/hit in 4 direction (up, down,left and right) like the game hollow knight do?
    If that possible?
     
  6. Muppo

    Muppo

    Joined:
    Sep 28, 2016
    Posts:
    242
    Yeah, absolutely.

    In that level, the RetroMachineGunPicker gives player RetroMachineGun. Just check this weapon prefab, it have a WeaponAim script with weapon rotation options.
     
  7. Muppo

    Muppo

    Joined:
    Sep 28, 2016
    Posts:
    242
    Hope you don't mind - especially @reuno - if I made a bit of spam of my little game.


    There's a new demo available on ralesizo.com if anyone want to give it a try.
    Only Windows this time, I need to check out all the touch input stuff before releasing another one on Android.
     
    Meowx, skayster and Boom_Shaka like this.
  8. bravery

    bravery

    Joined:
    Mar 26, 2009
    Posts:
    270
    I have download and played your game, and I should admit it's good as progress.
    Now I admit that this one is really good as a progress of development but allow to mention some points of improvements:
    1- First thing I believe there is a bug that when you have an interaction button (B) or even a dialog like the exist dialog then then the jump button is no more working, you will need to move around so the dialog will disappear and you can jump again.
    2- The time it's taking to enter the level took so long! I'm talking about the screen after the loading screen and before enter the game (I believe it's the map screen) this one took so long, and there is no progress appear at first I think that I was stuck!
    3- I manage to move around the whole level but I could not find the medicine (root)? how to reach it? I manage to move in the level for 3 times but could not find a clue where to find it? as an advice you should add some guidance in case player stuck, so the player do not lose interest in the game!
    4- The graphics is good but if you are planning to do this as commercial product and looking for hit you will need a better graphics and animation.

    keep up the good work
     
  9. hoyoyo80

    hoyoyo80

    Joined:
    Jan 31, 2018
    Posts:
    58
    Purchased CGE, and quickly made some simple level and enemy successfully.Actually i use unity 2017 and crazily looking for ai script.Upgrade to 2018 the yay!

    I manage to manipulate the function and variable via playmaker. One thing concern my workflow, that is setting up area and offset of the weapon. The weapon area only visible during playtime,adjusting wont save the value.
     
  10. Boom_Shaka

    Boom_Shaka

    Joined:
    Aug 31, 2017
    Posts:
    141
    Downloaded and looks great! Not sure if you need any more artwork, but there's a contributor at Open Game Art that does some pretty good retro tiles and characters - https://opengameart.org/users/grafxkid

    Looking forward to the final release.
     
  11. Kelgand

    Kelgand

    Joined:
    Feb 3, 2018
    Posts:
    10
    @hoyoyo80 This is due to how Unity behaves, not anything having to do with the Corgi Engine. As you found, if you adjust any values in the Unity inspector while the game is running then they will not be saved and they will go back to what they were previously. This is normal Unity behavior.

    If you change the values of your component and decide that you like the new ones, then you can do two things:

    1) Remember what you changed them to and after stopping the game manually change each value, or
    2) While the game is running (and after you changed the values), click on the settings gear for the component and choose "Copy component". After you stop the game, click on the settings gear again and then choose "Paste Component Values". This will copy and paste the new values into the component.
     
  12. Muppo

    Muppo

    Joined:
    Sep 28, 2016
    Posts:
    242
    @bravery

    The bug you say is, in fact, how dialogue zone works out of the box. I will like to change it, but haven't done it yet as it implied changes on the main dialogue script.

    "The time it's taking to enter the level took so long!"
    That seems odd, it is not brief but not long either, Are you running the game on an old PC?

    About the goal of the game: You'll not find the medicine root because it's a demo. To collect this item you have to finish the game.
    In case you're stuck on the first level (I'm not sure I understood you) you can leave the village from the right of the level after talking to the elder, otherwise there's a barrier preventing you to go outside.

    About the visuals - and I answering @Boom_Shaka here as well - don't worry, I'm not making a commercial game, just want to make a finished one for portfolio purposes. I'm sure I can do better, but I have little time for this project and I choose the "keep it simple and finish it" path.

    So, thanks for playing!

    BTW, @Boom_Shaka, that artist for the link is really good, I'll keep an eye on him, thanks!
     
  13. MoFaShi

    MoFaShi

    Joined:
    Oct 25, 2015
    Posts:
    43
    I found in EveryFrame method of CorgiController.cs, you called SetRaysParameters method twice. is it a bug or you just do it on purpose?
     
  14. hoyoyo80

    hoyoyo80

    Joined:
    Jan 31, 2018
    Posts:
    58
    Thanks for the clarification, i do think so too just addressing on how to combat the matter:) i know use method 1 uve posted but method two look easier:) Thanks again
     
    Kelgand likes this.
  15. bravery

    bravery

    Joined:
    Mar 26, 2009
    Posts:
    270
    My laptop have good specs and it's not old (16gb ram, 2.9ghz CPU, sad hard disk) so I believe you will need to test it on other machines to check if this happens on other computers as well.

    For the level, please tell me is this demo only 1level? Because I can't go to second level (if there is one) ? So if there is please let me know how can I reach there?
     
  16. MoFaShi

    MoFaShi

    Joined:
    Oct 25, 2015
    Posts:
    43
    the MMHealthBar.cs has a problem.
    if I set AlwaysVisible to true and set HideBarAtZeroDelay greater than 0(for example 0.2f), then this GameObject will not be hidden when enemies were killed.
     
  17. BigED

    BigED

    Joined:
    Jul 25, 2013
    Posts:
    16
    hey renuo,

    first - thanks for great asset!

    also I have a little question, that is the cleanest way to move character in horizontal direction in terms of corgi features, I want to build some kind of finite runner, or I should use unity3d build-in features?
     
  18. stmaddox

    stmaddox

    Joined:
    May 15, 2016
    Posts:
    9
    Just a comment. I did override on GameManager deleted its component and changed to myGameManager (and GUIManager to myGUIManager). The reason I did override worked just fine but many other things quit happening. It seems that to override these is nearly impossible. They are both called by many other classes. All these other classes need to be overridden too which is too much work. Too bad there is not a way to do a go between class that gets called by all the other classes and then passes to the correct Manager wanted to override.
    I will try to see if the overridden classes I made can be changed to their own base class and add them as an additional manager. As I said this is just a comment so nobody else tries to override these Managers.
     
  19. Muppo

    Muppo

    Joined:
    Sep 28, 2016
    Posts:
    242
    Thanks for playing it.

    I'm not sure if you mean the level selection scene (where 1-1, 1-2 an so on are located) or the "enter a house" effect.

    In the first case, is just a scene with several EndLevel prefabs, each one linked to another level.

    In the second case, these rooms are in the same scene. I'm using custom level bounds, camera controller and teleporters to achieve this effect.

    Hope this pic is self-explanatory.

    @stmaddox
    Good to know, the only manager I've customized so long is the RetroProgressManager (just the save game stuff) and all is working fine.
     
    Pacaworks and stmaddox like this.
  20. GodsonTM

    GodsonTM

    Joined:
    Apr 6, 2018
    Posts:
    6
    I'm not sure if this has been reported or not, but I'll just throw it here anyway:

    It's almost pixel perfect (if not pixel perfect), but it is possible to clip through the corner of a platform, and have varying results depending on the platform.

    If the platform is solid, you just get pushed backwards with varying amounts of velocity (as shown in this screenshot):
    If the platform is a one-way platform, you simply go through it. (Which I find weird considering that if you're standing, you collide with a one-way platform that's right in front of you as if it was solid instead of just walking right through it.)

    @Muppo
    I tried out your game too, it's really good so far, and pretty much all of the "issues" I found have already been reported by people, only thing is corgi engine's "corner clipping" thing also appears in your game.

    However, I do have a question. I assume for your custom LevelManager class you simply have an array of Bounds or something for sub-areas, but what did you do to to make your custom CameraManager switch from staying inside level bounds to staying inside sub-area bounds?
     
    Last edited: Dec 28, 2018
    Pacaworks likes this.
  21. captnhanky

    captnhanky

    Joined:
    Dec 31, 2015
    Posts:
    97
    Hi!
    Can anyone tell me how to stick a (second) camera to the player?

    I need this for a radar.

    I don't know how to do this in corgi because the player is generated at runtime.

    Thanks!
     
  22. Pacaworks

    Pacaworks

    Joined:
    Jan 28, 2016
    Posts:
    12
    This corner clipping is also killing me (not in a pixel perfect mode). Today I discovered that at 300 fps, the corner pushing gets stronger and your character, literally, flies from one side of the map to the other. Meanwhile, at 60 fps it just gets pushed a little.

    I think this may be caused by the Raycast's missing corner collision? they collide on horizontal & vertical sides, but there's a missing hole in the corners :confused:
     
    Last edited: Dec 28, 2018
  23. Muppo

    Muppo

    Joined:
    Sep 28, 2016
    Posts:
    242
    The Area Bounds you can see on the last post have their own bounds values, the custom camera check Level Bounds in Update() so, when player is teleported to the new area, the camera takes these values.

    About the 'corner clipping', I'm not sure how much percentage of this is due to Unity's tile map system or Corgi Engine, because -as far as I know- if your sprite is not 99% square at least Unity tends to round corners, making little slopes on the corners.

    One way platforms in tile map levels have an irregular behavior, yes, it seems it doesn't happen on the regular scenes, that's why I doubt.

    Let's see what does @reuno think about this.
     
  24. Kelgand

    Kelgand

    Joined:
    Feb 3, 2018
    Posts:
    10
    @Kektastic I agree with Muppo here, it looks like your ground sprite doesn't have a sharp corner. My guess is that you are hitting the edge pixel, it is being calculated as a slope that is at a greater angle than your
    MaximumSlopeAngle in the Corgi Controller, and the character is slipping down it.
     
  25. hoyoyo80

    hoyoyo80

    Joined:
    Jan 31, 2018
    Posts:
    58
    Hi all, ive made my own character to learn more and i made one ai using melee attack.
    The problem ive encounter is if the player stay long enough in the melee damage area, after sometime the player wont receive any damage.

    Thanks
     
  26. MoFaShi

    MoFaShi

    Joined:
    Oct 25, 2015
    Posts:
    43
    this is exactly what I want. I even thought that Corgi Engine can't handle animation in this way before I saw this post.
     
  27. captnhanky

    captnhanky

    Joined:
    Dec 31, 2015
    Posts:
    97
    Hi!

    Is there a way to change the death behavior of the character?
    I just want the character to blow up and disappear instead of falling off the screen.

    In the health script there is a "destroy on death" but it does nothing noticeable.

    Thanks
     
  28. Bagazi

    Bagazi

    Joined:
    Apr 18, 2018
    Posts:
    611
    upload_2018-12-29_20-8-25.png



    My cat can not climb the tiledmap collider which is made by composited tiledmap collider but he can climb the black block which is made of 2d box collider... By the way,he can down hill the slope both....
     
  29. Boom_Shaka

    Boom_Shaka

    Joined:
    Aug 31, 2017
    Posts:
    141
    de-select "collisions off on death"
     
  30. captnhanky

    captnhanky

    Joined:
    Dec 31, 2015
    Posts:
    97
    This does not work. The character is still there.

    The only effect is that the character sits on the collider below after death.
     
  31. Boom_Shaka

    Boom_Shaka

    Joined:
    Aug 31, 2017
    Posts:
    141
    Exactly -- you said you didn't want it falling off screen. It sounds like you're asking about respawn behavior - that's controlled in the level manager and camera controller script.

    You'll need to play around with the settings to get the exact effect you want, but, in a nutshell - time your respawn delay to your death fx animation. You can set "instant reposition camera on respawn" to true if you don't want the camera to pan back to the respawn point - that's probably the "disappear" effect you're looking for.
     
  32. captnhanky

    captnhanky

    Joined:
    Dec 31, 2015
    Posts:
    97


    Thank you for your effort to help me out.

    I am making a side space shooter like game and I need the player to disappear instantly (in a fireball) when hit.

    Repositioning of the camera and the time delay to respawn does not help here.
    The player must instantly vanish, like an enemy vanishes instantly when 100% damage is reached.

    I think this could be an error in the corgi engine, since "destroy on death" works with enemies as expected.
    On the player this checkbox does nothing.

    When removing the "health" script completely, the player instantly vanishes on hit (but does not respawn).
     
  33. Boom_Shaka

    Boom_Shaka

    Joined:
    Aug 31, 2017
    Posts:
    141
    I get it - I achieved that effect by tweaking respawn/camera position. "Destroy on Death" doesn't work on player characters...I'm assuming there's a specific reason for that so I didn't mess with it. Dev should be back soon, though so he'll be able to give you some more direction. Good luck!
     
  34. reuno

    reuno

    Joined:
    Sep 22, 2014
    Posts:
    4,923
    I'm back! Got around 300 questions via email while I was off this week, so it's gonna take a little while for me to answer them all, but rest assured the answer is coming soon!
     
    Pacaworks likes this.
  35. reuno

    reuno

    Joined:
    Sep 22, 2014
    Posts:
    4,923
    @captnhanky > As @Muppo said, for endless levels teleporters (or using the same logic) would be a good way to go.
    @bravery > It's an option on the WeaponAim component. You can look at other weapons in the FeaturesWeapons demo scene (for example) for reference. And of course don't hesitate to look at the documentation for more details.
    @Grafos > A pre-jump / post-jump delay would be a nice addition indeed, It's been suggested already, I'll add your vote to it!
    @Muppo > I absolutely don't mind people posting links to their game here, that's what this thread is for :) And congratulations, this is really good work. I love the visuals. I think you can pick a better font for dialogs (it's too blurry, and doesn't match the scale of your pixels otherwise) but apart from that that's impressive! Didn't get any long loading time, everything seemed fine, generally.
    @hoyoyo80 > As @Kelgand said, this is due to Unity's way of doing things. Follow @Kelgand's workflow recommendation, it's the way to go.
    @MoFaShi > The ray size set is done on purpose. As for the HealthBar, no, it doesn't have a problem, it's working as intended. If you add a delay and then have the parent object get killed, there's nothing anymore to hide it. You need to make sure your character doesn't get destroyed.
    @BigED > I'm not sure I understand your question, but the CharacterHorizontalMovement ability handles horizontal movement, if that's what you were asking.
    @stmaddox > Overriding managers works just fine, and you'll find examples of that in multiple demos (the Hunt demo extends the LevelManager into a MultiplayerLevelManager for example, and there's nothing preventing you from extending the GameManager or other managers). And even though this is really just standard Unity and nothing specific to the engine, there is even a dedicated section of the documentation about this : https://corgi-engine-docs.moremountains.com/managers.html#extending-a-manager
    @Kektastic > Hard to tell what's wrong here without seeing the colliders and rays. If the problem persists, please use the support email, thanks. As for one way platforms, of course you go through them when jumping, that's exactly what they're designed for :) You can't walk through them though, that's what mid height one way platforms are for, they're a different thing.
    @captnhanky > As explained in the documentation, you can get a reference to your player via the LevelManager's Players array (LevelManager.Instance.Players[0], usually).
    @AesopWorks > I don't reproduce that 300fps bug you mention, please send more details on the support email if it persists, thanks (version, how to reproduce exactly and where, etc).
    @hoyoyo80 > Hard to tell without more details, but you usually won't want your damage area to last longer than the time it takes to apply damage.
    @captnhanky > The DestroyOnDeath option destroys (in the Unity sense) your player character's gameobject. You can add particles on death of course, if that's what you're asking for.

    Alright, that should be all. I'm still going through the emails right now (I'm at around 30%). Please use the support email if you think you've found a bug or have a support issue, and if I haven't answered your email yet, I haven't forgotten you, and the answer is coming soon!
     
    Muppo and Grafos like this.
  36. Betzalel

    Betzalel

    Joined:
    Dec 3, 2017
    Posts:
    22
    Hello! im having really having a rough time setting up my character a using the new unity 2d bones package. Any chance you may be doing a tutorial on setting up the corgi character using unity's 2d animation system anytime soon? assuming it was similar i tried using the spine prefab examples you have just replacing with my own parts and animations but its not animating at all. i also tried starting from scratch piecing the character together with the scripts in other character prefabs. unless you feel the corgi engine is not yet compatible with the unity 2d animation package could you give some pointers on how to set it up properly? im sure a lot of us could benefit greatly from it!! :) thank you for your time!
     
  37. reuno

    reuno

    Joined:
    Sep 22, 2014
    Posts:
    4,923
    @Betzalel > I haven't tried the Unity 2D package yet, doesn't it use Mecanim? If it does, it'll work just fine with the engine. The engine is agnostic when it comes to animation, all it does is send and update parameters, the rest is just standard Unity.
     
  38. Friction

    Friction

    Joined:
    Jan 6, 2015
    Posts:
    18
    Hello,
    Is this a bug? Do you have any suggestions for this situation?
     
  39. reuno

    reuno

    Joined:
    Sep 22, 2014
    Posts:
    4,923
    @Friction > That's not a bug, it's just an edge case that isn't implemented. You'd have to tell the jetpack ability what you want it to do in this situation. It could be adding a force to exit the gravity point's zone, or or inverting the force, for example.
     
  40. Pacaworks

    Pacaworks

    Joined:
    Jan 28, 2016
    Posts:
    12
    Hey!

    Does anyone knows if there's a way to get the object your colliding with? In CorgiEngine obviously! and without using voids like "OnCollisionEnter2D", etc...

    I was wondering if you can get the tag, the same way as "OnCollision" methods from unity: if(_controller.state.isColliding.gameobject.tag == yourTag) Do something


    Thanks for your attention! :)
     
  41. reuno

    reuno

    Joined:
    Sep 22, 2014
    Posts:
    4,923
    @AesopWorks > You can get the object you're standing on via the controller's StandingOn property, and the wall you're colliding with via CurrentWallCollider. For anything else, the native OnCollision2D methods are the way to go. Not sure why you wouldn't want to use them, but alternatively you can cast rays to get that info if you prefer.
     
    Pacaworks likes this.
  42. matttardiff

    matttardiff

    Joined:
    Feb 27, 2018
    Posts:
    30
    Request
    Under the MM Collision and Trigger script, I only use the OnTrigger2D. It would be great if we could collapse the OnCollision2d and others into their individual tabs. Like how the Info tab is under the BoxCollider2D. Tabs within tabs.
    asdsad.png
     
  43. reuno

    reuno

    Joined:
    Sep 22, 2014
    Posts:
    4,923
    @matttardiff > Wow, I had forgotten I had created this script :)
    It's a cool one though. I see how I could add these tabs, I'll put that on the todo list, thanks for the suggestion!
     
  44. reuno

    reuno

    Joined:
    Sep 22, 2014
    Posts:
    4,923
    Boom_Shaka likes this.
  45. Bagazi

    Bagazi

    Joined:
    Apr 18, 2018
    Posts:
    611
    Hi, is there some facility for Parallel backend gameObjects like Clouds?:)
     
  46. borkbork

    borkbork

    Joined:
    Jul 5, 2014
    Posts:
    64
    Can I use anyportrait to build characters for corgi?
     
  47. MoFaShi

    MoFaShi

    Joined:
    Oct 25, 2015
    Posts:
    43
  48. tallesmaziero

    tallesmaziero

    Joined:
    Feb 3, 2018
    Posts:
    19
    I'm with a problem. I setted Ai Brain to shoot when my character enters the enemy radius. But the AI only shoot horizontally. How i set it to shoot at the direction of the player? I tried all the options in the weapon script in my enemy prefab (primary movement, second movement, etc)..
     
  49. tallesmaziero

    tallesmaziero

    Joined:
    Feb 3, 2018
    Posts:
    19
    There is a chance in future updates an option to ride vehicles?
     
    Ultrapp likes this.
  50. Muppo

    Muppo

    Joined:
    Sep 28, 2016
    Posts:
    242
    @Bagazi
    You mean like clouds having its own parallax? You can set parallax components to work forward or reverse separatelly, but if you want something like solo clouds, you can use a moving platform at a very slow speed, just don't forget to change its layer or delete the collider so player can't interact with it.

    @tallesmaziero
    I think what you need is already on the second yellow dude at "Retro AI" demo level.
     
    Bagazi and tallesmaziero like this.