Home Creators Posts Import Register Favorites Logout

Content

Examples used in tutorial video: https://www.youtube.com/watch?v=cIDogw617rQJust a quick video showcasing the new 2d paint mode.

Here are the example mini-game used in the video.

The example game scene in the video is at:

res://scenes/2d_platformer/basic_world/tutorial_paint_world.tscn

The 'game' was me just playing around so I had something interesting to show in the video.

This is the same as the mobile project with the 3D example using the joysticks.

To avoid changing the resolution between the 2D and 3D games, I've made the 2d scene scaled by 3x. But turns out this cased quite a few unusual problems with reparenting nodes.

This happens because I choose to have a hidden label with the loot and reparent it to the root after the player collects the loot.

But this caused the label scale to change, so I had to save the scale to a var, reparent it, and change the scale to the saved value. Which seems to fix the issue.

For a real game though, you should adjust the game's resolution correctly and remove the 2D node scale. Just be aware that the speeds will change, because the are pixel-based. So make sure to divide everything if you remove the scaling.

Files

Comments

No comments found for this post.