Custom Sized Blocks Tutorial

Description: Casual SMBX discussion.
Moderators: Semi-moderatos, Moderators

Squishy Rex M
Topic author, Advanced Moderator
Advanced Moderator
Avatar
Squishy Rex M
Topic author, Advanced Moderator
Advanced Moderator
Age: 23
Reputation: 107
Posts: 254
Joined: 24 Feb 2014
Location: Australia

Post #1by Squishy Rex » 3 Sep 2014, 11:58

Recovered from NSMBX Forums. Made by SkyBlueYoshi.
Original Topic:

Here's a tutorial made by SkyBlueYoshi for making blocks of any size.

Spoiler
First open up your SMBX, make a regular level and save it as .lvl file. Then choose the block you want to customize and open the debugger (in View--Debugger) and record its coordinate. After that, open up your .lvl file using Notepad (or other tools like Notepad++) and search (Ctrl+F is the common hotkey) its coordinate.

Using the New Blocks.lvl (download link available in this post: http://www.sendspace.com/file/8sjqj7), suppose we want to change the block at coordinate (X:-199616,Y:-200256), then after searching "-199616" or "-200256" we can navigate to the following code:

-199616
-200256
32
32
82
0
#FALSE#
#FALSE#
"Default"
""
""
""

Here is the meaning of these codes:

-199616----X coordinate
-200256----Y coordinate
32----Block's height
32----Block's width
82----Block ID
0----Contained item ID
#FALSE#----Invisibility
#FALSE#----Slippery
"Default"----Layer
""----Death
""----Hit
""----No More Objects in Layer

By changing the height and width, we can customize its size.

About blocks:
Changing

32
32

to

64
64

, the block will be rendered as 64*64 and its actual hitting boundary will become 64*64 as well.
Changing to

10
12

will do the same except for the size (obviously).

About slopes:
First the basic principle:

This is a 32*32 slope
http://fc05.deviantart.net/fs71/f/2013/229/9/7/1_by_blueyoshis-d6ij8ia.png
This is a 64*32 slope
http://fc02.deviantart.net/fs71/f/2013/229/4/5/2_by_blueyoshis-d6ij9m0.png
This is a 128*32 slope
http://fc06.deviantart.net/fs71/f/2013/229/5/4/3_by_blueyoshis-d6ij9q1.png
From this we can know the slope is actually rendered by drawing the diagonal. So by changing the height and width of the slope we can create any slope of any size and any slope angle we want.
Using New Blocks.lvl as an example, after finding the following code:

-199520
-200512
32
32
299
0
#FALSE#
#FALSE#
"Default"
""
""
""

If we change

32
32

into

64
32

,the slope will turn from
http://fc05.deviantart.net/fs71/f/2013/229/9/7/1_by_blueyoshis-d6ij8ia.png
to
http://fc09.deviantart.net/fs71/f/2013/229/f/c/4_by_blueyoshis-d6ij9th.png

If changing

32
32

to

32
96

,the slope will turn from
http://fc05.deviantart.net/fs71/f/2013/229/9/7/1_by_blueyoshis-d6ij8ia.png
to
http://fc08.deviantart.net/fs71/f/2013/229/e/e/5_by_blueyoshis-d6ij9w1.png
Yes. It's THAT simple! Now you know how to create any size of blocks and slopes you want!

Screenshots:
http://fc07.deviantart.net/fs71/f/2013/229/6/b/untitled_by_blueyoshis-d6ihphv.png
http://fc04.deviantart.net/fs70/f/2013/229/c/b/ne ... ocks_by_blueyoshis-d6ihpln.png
http://fc09.deviantart.net/fs71/f/2013/228/e/2/sm ... ocks_by_blueyoshis-d6ihoqx.png
Squishy Rex's CGFX Pack v1.7
Image
To show your support add any of these Userbars to your Signature!
Image

Veudekato M
Viscount
Viscount
Avatar
Veudekato M
Viscount
Viscount
Reputation: 58
Posts: 369
Joined: 19 Feb 2014
Location: Russia

Post #2by Veudekato » 3 Sep 2014, 12:32

ah,hard tutorial. platgenwohl can auto-resize block without coding lvl file.
my easy tutorial:

phpBB [youtube]

Original link: http://www.youtube.com/watch?v=bGk7lmmmjP4

My channel (PlatGEnWohl news and tutorials , smbx tests):
http://www.youtube.com/channel/UC6h-42umT14iR1wa3VkOs3Q


Return to “General”

Who is online (over the past 5 minutes)

Users browsing this forum: 1 guest