Platform Builder Forums

Help and Support => Working with the Ultimate Platformer Engine => Topic started by: Galla on November 02, 2019, 10:05:23 AM

Title: Change sprites and settings
Post by: Galla on November 02, 2019, 10:05:23 AM
Hello,

I changed the spr_char_default but I got a problem because my char is 16x16 so I changed the mask_char to fit for my char and now if I want to walk on the obj_solid/ground I'm in the ground and not on the ground. So can u show me where I can change the collision for the mask_char? Sry for bad English

Thank you in advance.
Title: Re: Change sprites and settings
Post by: War on November 02, 2019, 10:56:54 AM
So you changed the character hitbox and now he's stuck in the ground?
Title: Re: Change sprites and settings
Post by: Galla on November 02, 2019, 11:03:26 AM
Hello,

yea not really stuck im under the ground but I can move. But I can't make the player ON the ground. Need to find the script where i can change the (x,y) of the mask_char for the collision on obj_solid.


(https://i.ibb.co/NZRpVNv/Under.png) (https://ibb.co/2gJPnM9)

(https://i.ibb.co/6w88GZY/Jumping.png) (https://ibb.co/c3wwRvJ)

(https://i.ibb.co/mGSF2kL/Ladder.png) (https://ibb.co/vHDvTp7)

(https://i.ibb.co/BPSgDgC/Difference.png) (https://imgbb.com/)

The difference in size.

(https://i.ibb.co/vsK0Ld8/Standing.png) (https://ibb.co/hXt32dv)

Title: Re: Change sprites and settings
Post by: Alley on November 02, 2019, 10:10:55 PM
Welcome, Galla!

I see that you have not a very new member here actually but it is joyfully nice to see that some inactive seeming people actually pop up by beginning to post with some images also including some progress with PB. :)

Talking about your problem I really appreciate people who try to make something that hasn't been meant to be possible with PB yet. However, when you use a lot of free space to represent a tiny character then drawing sprites you won't change about how hitbox works for the character. Although in a case of a very smart system PB may change the size of the hitbox when drawing smaller characters. If your character seems to be always one tile below from a correct position then try to move your character upon every frame from the character sheet! But am I right, I am not completely sure.  ???
If you are working with UPE and you are editing elements also that are not accessible in PB such as masks, etc then I am the wrong person to help because I haven't bought it for being able to try by myself. Your idea to find x and y is right because that way practicing and thinking about the logic ways we also learn.
Title: Re: Change sprites and settings
Post by: CGM on November 02, 2019, 11:13:24 PM
It's the UPE, Alley. This post was posted in Working With the Ultimate Platformer Engine. Not Platform Builder.
Title: Re: Change sprites and settings
Post by: Alley on November 02, 2019, 11:24:09 PM
I see. :) Didn't pay attention to the location of this topic. :P
Title: Re: Change sprites and settings
Post by: CGM on November 02, 2019, 11:41:59 PM
It's alright. ;)
Title: Re: Change sprites and settings
Post by: Alley on November 03, 2019, 10:17:55 PM
Anyways, my the most important point here is still the same to say hello to our new active member. :) I hope he will continue showing some activity.
Title: Re: Change sprites and settings
Post by: Galla on November 04, 2019, 07:01:11 AM
Thank you for the warm welcome ;D. I just started with my project so I will be active, most of the time with UPE  but I will try the PB because I like the level editor its OP.
Title: Re: Change sprites and settings
Post by: TingThing on November 04, 2019, 04:11:45 PM
Hi Galla, and welcome!


16x16 is a really small character sprite for the UPE, unless you intend for the character to be appear small and surrounded by really large objects. If I were you, I would double the size to 32x32.


If you want to change the character mask in the Ultimate Platformer Engine, it will take a moderate amount of time and a moderate level of skill with Game Maker. There are multiple masks that are used for the character (Sprites > Course > Character > Character Masks), so you will need to adjust each one.


I don't know exactly what is causing your issues, but the most common reasons for characters getting stuck in walls is because of a poorly-made mask. You want the origin to be exactly in the center top of the sprite, with an even number of pixels to the left and the right of the center point. Even one pixel off and you can have problems. (The exceptions are mask_char_attack and mask_char_melee. If you won't plan to have the character using attack moves, then you don't need to worry about those)


Several of the mask sprites use custom collision masks in the sprite settings, so make sure that those collision settings are still correct after you resize the sprite.

Good luck!
-TingThing



Title: Re: Change sprites and settings
Post by: War on November 04, 2019, 07:50:16 PM
I like the level editor its OP.
The level editor is not perfect (yet) but it's very easy to use. Hope you like it! ;D
I just started with my project so I will be active
The pictures of your character are already promising! Look's like you will be a important member of this community! Still waiting for more info about the game ;D
Title: Re: Change sprites and settings
Post by: Galla on November 11, 2019, 09:12:57 AM
I know its a late respond but I played a little with the engine and its good but I have some problems I managed to get the mask_char to work but now I have some problems with the camera, so basically I have a light system and somehow it stops working after I leave the first viewport size i think !?!

WORKING
(https://i.ibb.co/qJJ883H/Light-Working.png) (https://ibb.co/CPPyy3j)

NOT WOKING
(https://i.ibb.co/GcZXRgc/Light-Not-Working.png) (https://ibb.co/cDWPQzD)

in the pictures, u can see how far I get after the light system stop working but if I go back it works till the point where it stops working and its the size of the viewport ( I think I'm not 100% sure) I hope you understand what I mean. How does the camera handle viewports?
And one more question how can I get more control in the air it's hard to change direction after I jumped.

Edit: Its the same problem with the rain it stops working at the same place as the light system. I tried some other engines and zero problems.


ACTION PLATFORMER ENGINE
(https://i.ibb.co/g44StbZ/Light-Other-Engine.png) (https://ibb.co/NTT9Wg2)

(https://i.ibb.co/5F3kjWY/Light-Other-Engine2.png) (https://ibb.co/C2y695J)
Title: Re: Change sprites and settings
Post by: War on November 11, 2019, 10:53:20 AM
(https://i.ibb.co/qJJ883H/Light-Working.png) (https://ibb.co/CPPyy3j)
Heyyyyy, looks promising! You should make a game page on the forum(or at least give us the page if not on the forum)
The only thing that make this look weird is the habitual anti-aliasing! Tingthing should replace it by a pixel perfect display, which is much better.
Title: Re: Change sprites and settings
Post by: Galla on November 11, 2019, 11:09:48 AM
Hey Thank you, I will make the page later on the forum I need to first fix the problems so I can work on balancing some stuff.
Title: Re: Change sprites and settings
Post by: CGM on November 11, 2019, 11:36:05 PM
Looks very interesting! If only PB could do those light shading things...
Title: Re: Change sprites and settings
Post by: TingThing on November 12, 2019, 06:38:45 AM
I'm guessing that your light system is drawn with an instance that you placed somewhere in your room? Instances that are a certain distance outside the view are deactivated. You'll want to go to obj_main alarm[5] and add your light effect object to the list of objects that must always stay activated.


As for the character jumping horizontal movement, take a look at the screenshot. obj_char event_user 1 and 2 handle moving left and right. When the character is in the air, the character's speed is reduced by a multiplication factor. You could remove that factor or modify it. I think that will work for you. Make sure you do it for both left and right movement.




 (https://i.ibb.co/cL29HtB/Capture.png) (https://ibb.co/GTCDLk6)
Title: Re: Change sprites and settings
Post by: Galla on November 12, 2019, 11:33:57 AM
Yep, that was the problem. I need to test somethings but for now it's working even the shadows and the lamps that go on/of are working.

(https://i.ibb.co/T8bVs6m/Working1.png) (https://ibb.co/85dWHq6)

(https://i.ibb.co/yBChPgc/Working2.png) (https://ibb.co/k6T3Bqs)

And the feel of the jump is now better too, need some balancing but now I know where I need to look.  Thank you.
Title: Re: Change sprites and settings
Post by: TingThing on November 12, 2019, 03:32:59 PM
Awesome, glad to help!
Title: Re: Change sprites and settings
Post by: CGM on November 12, 2019, 07:44:11 PM
Looking at these pictures makes PB seem like it needs to get some additions. The things PB can't do that these pictures show is the special lights, the character with small collisions, and the rain. (Which technically could be done. Come to think of it.) Which makes me feel better that PB can do a lot of things that GMS2 can do. Not everything, but a lot. And ASM could REALLY use those special light surfaces.
Title: Re: Change sprites and settings
Post by: War on November 13, 2019, 02:41:29 PM
He also need pixel-perfect display in fullscreen
Title: Re: Change sprites and settings
Post by: CGM on November 13, 2019, 08:09:56 PM
And what exactly is that?
Title: Re: Change sprites and settings
Post by: War on November 14, 2019, 09:59:44 AM
(https://i.ibb.co/z6Pvpzs/1-myrco8-Z6x-F0ww-D-u7-YJrg-A.png) (https://ibb.co/sWsYnZj)
Title: Re: Change sprites and settings
Post by: CGM on November 14, 2019, 10:28:33 PM
Hmm...Is that supposed to be a meme? If not, then I totally understand.
Title: Re: Change sprites and settings
Post by: War on November 15, 2019, 03:47:58 PM
Hmm...Is that supposed to be a meme? If not, then I totally understand.
This is the difference between integrer scaling and bilinear scaling in fullscreen. Here's a better example
(https://i.ibb.co/Gt4Vhgr/teaser-scaling21.jpg) (https://ibb.co/D8H7q3j)
Title: Re: Change sprites and settings
Post by: TingThing on November 17, 2019, 09:49:45 PM

Here is why I use pixel blending with Platform Builder: (click the image to see full resolution)

 (https://i.ibb.co/zFgjbDn/Screenshot.png) (https://ibb.co/C6yNvD1)


It's a decent look when you are using the smallest screen display with the view all the way back (giving a perfect 1 to 1 zoom ratio), but any kind of view of window resizing is going to give an unpleasant result. This can't be helped, and it is why pixel blending is necessary.
Title: Re: Change sprites and settings
Post by: CGM on November 17, 2019, 11:57:29 PM
You know, Warrior555, in ASM I always use the farthest view set because it looks better than anything else. Well, I use it most of the time unless absolutely necessary.
Title: Re: Change sprites and settings
Post by: War on November 18, 2019, 07:46:10 AM
Or maybe we could add an option "Enable Pixel Bending" which would be set by default on true...?
Title: Re: Change sprites and settings
Post by: Alley on December 02, 2019, 10:40:08 PM

Yep, that was the problem. I need to test somethings but for now it's working even the shadows and the lamps that go on/of are working.

(https://i.ibb.co/T8bVs6m/Working1.png) (https://ibb.co/85dWHq6)

(https://i.ibb.co/yBChPgc/Working2.png) (https://ibb.co/k6T3Bqs)

And the feel of the jump is now better too, need some balancing but now I know where I need to look.  Thank you.

This project sets probably the biggest priorities for the game in this community. O:-) I never could think of seeing much better projects than Castle Chamber, ASM and (I must admit also) IGP but it is looking to beat those all although I am not sure about how stable or glitchy your game will be that way anyway... Wow. Your goals are very courageous and seem really confident.
Your first images didn't impress me much but if working with a new system, modifications, more complicated things I don't find a level design to be that important first. :)

Just look you will not get lost already! ::) Although I always try to be fairly tolerant I strive to be critical rather. Your project can win my big praise. :)