ambiera logo

Ambiera Forum

Discussions, Help and Support.

folder icon Ambiera Forum > CopperCube > Announcements and Showcase
forum topic indicator Saboteur remake (2D platformer)
person icon
just_in_case
Moderator
Quote
2023-11-27 03:55:10

@VP,

The collision detection is automatic, you don't need to adjust the side or height, the issue you are facing might be due to the transparent part of your sprite you probably have a more blank(transparent) area at the top and side of your sprite.
It is better to crop your sprite having only 1px transparent frame for the sprite. Otherwise, the collision will get triggered earlier, because the collision is so accurate right now, that it triggers as soon as the actual planemesh hits the wall or anything. So check if you have blank transparent area, if there is then you can crop the sprite.

Yeah, I haven't added anything for the climb-down animation, maybe I should add that as well, I will try to add it.

Death and taking damage animation is already planned, and a custom shoot (projectile) action for 2D games too.

I actually already have some of these things in my Top-Down Shooter game already, all I have to do is split a few items from that one large behavior into separate individual extensions so that they can be used with other game types as well.

There is also an AI mechanism in that behavior, so gonna release that as well.

I can convert them for 3D as well, but for now, my priorities are 2D games.

Hopefully, by the end of this week, I will post some more updates.

person icon
VP
Guest
Quote
2023-11-29 20:20:28

Thanks my friend. That's really kind of you.

As for collision, I was really struggling to get it to work but I just figured something out now whilst making the comment....

Cropping the pixels and scaling the animations didn't seem to affect collision at all - but - scaling the actual 2D controller node seems to dictate the collision. I scaled down the controller node (smaller than the animated 2D planes) and collision was adjusted. Now I know, I can scale-down the controller node and then just separately increase the scale of the animations to compensate. Pretty sure I can get it working perfectly now. Then it's just a case of finishing the map and the enemies to finalise the game. Thanks so much for your help with the 2D camera and controller!

Also thanks for encouraging me to start coding for coppercube. I may be able to add the climbdown and death animations to your script myself if you're busy! I've been busy practicing coding this week using the scripting guide and some googling of various sites. I've managed to make a simple 2D controller script (just for fun/learning)... and it works, lol. I've only coded the walk and idle animations at the moment and it also has a smoothed camera using shoot every few seconds and change position. It ha basic jump but not coded,just using the "move with keyboard"plugin for now. I can upload the small ccb demo here (containing my script) if anyone's interested.

To continue learning code, I'm thinking of expanding my controller to become part of my animated character creator project. I have made a tiny animated 3D rigged mesh with hundreds of animations, textures and weapons/armour/equipment etc that I've made for it. I can flatten it into 2D simply by setting the 3D x-scale to near-zero (not perfectly flat to avoid z-fighting) to make it work with my basic 2D controller. The character looks great in 2D (and not too bad in 3D) and si very low poly and super responsive. It only needs transparent-alpha.png images as tools/weapons/items etc, rather than using 3D meshes, childed to the animated joints - everything swaps textures using a special nodes I made to store the assets in multiple material-slots and call them into the scene using arrays.

Anyway, super happy. Thanks again.

person icon
just_in_case
Moderator
Quote
2023-11-30 10:51:05

Ahh, I got myself confused with the sprite and planemesh, sometimes it's just that my mind doesn't work at all. Anyway glad that you figured it out, I was actually talking about scaling plane-mesh as the collision gets detected with that only, there is no alpha-based collision yet, but clearly my mind was somewhere else while writing that post.

So I also just posted a small update to the controller with a separate climb animation, damage and health stuff, and a death animation along with an updated demo file.

There is not that much to put into this update as I started working side by side on other related projects as well.

you can read the details about the update here on itch.io
https://vazahat.itch.io/coppercu...

I am glad that you started learning JavaScript, you are doing great already, I started like you and I am still learning, I don't use advanced stuff but as long as my code is working without any issues I call it a bingo for me.
You should definitely extend your code and controller by adding more to it, only practice will make you do stuff much faster and will help you a lot in learning. A person who is good at creating visual logic is also good at creating stuff with programming.

It can be an idea to use a flattened 3D model for creating a 2D illusion but it will still cost you resources in the long run as it is still gonna use the amount of polygons and vertices I believe. but as long as your game is small and can be played on minimal hardware specs you can go with 3D model stuff.

person icon
luposian
Registered User
Quote
2023-12-27 04:03:00

Any idea when we get to see the next version of this game remake? I wanna see it!
emoji icon_grin

person icon
VP
Guest
Quote
2024-01-11 09:45:36

Hi luposian, thanks for the interest in this project.

Ive been without a computer since the last update. Ive managed to order a new one which hopefully will arrive next week. I will then to continue the project once it arrives...assuming I can successfully extract the data from the internal SSD of the old laptop. Fingers and paws crossed.

person icon
luposian
Registered User
Quote
2024-01-11 20:57:18

VP wrote:
Hi luposian, thanks for the interest in this project.

Ive been without a computer since the last update. Ive managed to order a new one which hopefully will arrive next week. I will then to continue the project once it arrives...assuming I can successfully extract the data from the internal SSD of the old laptop. Fingers and paws crossed.


Provided the SSD is not corrupted, you should be able to remove the SSD from your old laptop (is it a regular 2.5" laptop type SSD (SATA) or a PCIe m.2 type SSD?) and read the contents on your new laptop, with a USB reader device (I have one that will let me plug in 2.5" as well as 3.5" SATA devices). If it's a PCIe m.2 SSD, there are external cases for that as well.

person icon
VP
Guest
Quote
2024-01-16 13:26:15

Thanks Luposian. Yeah, its an m2. Ill grab a USB cable for it, the only issue I may possibly encounter is unlocking it as its an encrypted system Drive. If I cant get in, Ill either abandon it or maybe try and resurrect the old laptop so I can fire it up and copy the files across from the drive manually.

person icon
o139
Registered User
Quote
2024-01-16 13:51:03

I keep backup of my files on 32gb usb drive
just in case if something happens to the computer.

person icon
luposian
Registered User
Quote
2024-01-16 21:20:46

VP wrote:
Thanks Luposian. Yeah, its an m2. Ill grab a USB cable for it, the only issue I may possibly encounter is unlocking it as its an encrypted system Drive. If I cant get in, Ill either abandon it or maybe try and resurrect the old laptop so I can fire it up and copy the files across from the drive manually.

About Encrypted system drives... that's why I don't do that. If anything happens to my system, I need to be able to pull the data off my drive, period, if the computer ever takes a dive. Always (frequently) backup your data to a thumb drive or other backup media.

Hope you can get back up and running with this game soon!

person icon
vp
Guest
Quote
2024-01-16 21:40:10

Yeah, its happened to me tons of times. I have a 4TB backup, just not got a computer to restore them to yet; The only files that are possibly lost will be the ones that were not synced before the system died. Ill probably be able to recover them directly from the ssd though.

I do find that backups arent really practical wherever coppercube is concerned, as its completely dependent on lthe original local folders/file system. When I do recover the backup files to the new system (or even when I open a backuo project from the external drive), they most likely will have all sounds and music missing and all the textures might just be flat-grey; unless I can remember (and reconstruct) the subfolder paths used in the original ccb file. Pretty much useless.

Even accidentally using the same filename can completely screw a project as it auto updates to the newest file whenever the project is opened with no way to restore the older/original version. The only thing that seems truly protected by a backup are scripts and plugins, it will reload an old script even if a newer version has been replaced since.

The backed-up published exe files work perfect but not the ccb project files. In fact, this is the single reason for all my projects not reaching maturity/completion. I did enjoy the Saboteur project, so I will probably put the time in to rebuild it or start it again.... but all my other projects (rebel county, cas-evac and strategic defense) all suffered the same tragic fate unfortunately. I do hope to go back and finish them all eventually, just that my mind is more inclined to jump to a new project instead.

person icon
VP
Guest
Quote
2024-01-16 21:43:46

Thanks Luposian, no biggie really, its just a hobby/pastime for me so I have no qualms about starting from scratch again. Weirdly, I crave adversity, lol.

person icon
Guest
Guest
Quote
2024-01-17 03:00:43

I hope that you recover your laptop and complete this game, it has a potential.

person icon
just_in_case
Moderator
Quote
2024-01-17 06:39:10

I also wish the same that your laptop gets revived, I created some updates to the extensions and created some other 2D extensions that I would like to push that I think might be useful for your game or for others to create 2D games.

Also, just let me know and send the exe file that you want to work ON, or provide me a link to it, and I will help you out to get the source project for you.

As I know that you are the legit author of some projects like, Neckron and the Alien Spider robot game, I might help you out getting source projects of those games if you can send me the EXE.

So just let me know if you need help recovering some old projects.

I also updated my very first behavior that I have written for CopperCube and will push an update very soon on itch.io :)

person icon
VP
Guest
Quote
2024-01-17 07:57:21

Thank you for your kindness and encouragement Guest! It will definitely be possible for me to improve and finish this Saboteur game at some point soon. Initial development was super-quick and fun thanks to the controller plugin and SVG blender-extrusion technique to almost instantly make the entire low-poly collision map from a single downloaded screenshot.

Thanks Just_In_Case, I really appreciate your offer to decompile the original files. That would be really helpful for the dead projects. I was gutted when Nekron and CasEvac (robot spider) were lost. It will be great to get them back so I can finish them finally - as they were both about 4/5 complete. As Rebel County, it was too big a project and was nowhere near completion, so Im not too concerned about reviving it yet. A lot of the stuff (missiles, cars, planes, helicopter, security cameras and the unfinished path-finder - I can remember how I did them anyway, so I can feed that knowledge back into finishing cas-evac).

Thanks people, Ill be back to it soon and aim to complete some projects.

person icon
just_in_case
Moderator
Quote
2024-01-20 17:35:33

okay, I will try looking for the files in my PC and will send you the source code via e-mail. Or if you have the EXE's then you can send them to my e-mail, and I will send you the ccb for those exe.

beingneophyte@gmail.com


Create reply:










 

  

Possible Codes


Feature Code
Link [url] www.example.com [/url]
Bold [b]bold text[/b]
Image [img]http://www.example.com/image.jpg[/img]
Quote [quote]quoted text[/quote]
Code [code]source code[/code]

Emoticons


icon_holyicon_cryicon_devilicon_lookicon_grinicon_kissicon_monkeyicon_hmpf
icon_sadicon_happyicon_smileicon_uhicon_blink   






Copyright© Ambiera e.U. all rights reserved.
Contact | Imprint | Products | Privacy Policy | Terms and Conditions |