Level with custom NPC and custom NPC-AI lua-script, will work with PGE Engine >=0.2.5.1-alpha

(13.05 KiB) Downloaded 115 times

To preview this, just run a test of this level in the PGE Engine as-is

I used alone NPC (based on 293 dummy NPC) which uses custom NPC-AI script which takes one of 91 frames randomly on initialization state. That a test, but in future I think to allow a choice of the color and the type via special values (combobox / spin-box for that, etc).

You probably could, if you could place them in the level in the correct order, as that is what determines the random sequence of colors that is generated (since math.random, the function called to generate the random number to pick which frame on the strip of mushroom block images is used, is apparently pseudo-random).

Or if there were a way to choose what color of mushroom to place at a certain spot, like Wohlstand was talking about in his post.

Speaking of which, that demo level was fun to mess around with. Thanks for making it, Wohlstand.

I added a door leading to a 2nd section containing some ? blocks that had the random mushroom blocks inside. It was interesting seeing the ? blocks always giving me the same order of mushroom blocks, in the same order I hit them...until I added another one in section 1, which generated a completely different order for section 2.

I also tried shooting the blocks out of a cannon by using a random mushroom block as a projectile generator. They slid all the way across the ground and looped around the level once before coming to a stop. The 2nd and 3rd rows that formed on top got insanely fast and I jumped to higher ground to keep from being crushed. Eventually the cannon started shooting the blocks into...somewhere between one side of the level and the other, where they were getting lost but not destroyed somehow, and the framerate began to drop, as expected.

Entering the other section and waiting a few seconds doesn't clear the mushroom block NPCs for some reason...I'm curious. What is the reason why that happens? Or doesn't happen, in this case, I guess would be more correct.

A small fix in the engine side (to allow some core lua bindings include os.clock()), I added rng.lua library by Hoeloe which provides better random number generation,Fixed level, but it requires latets build from laboratory (since today)

I have a small suggestion and I don't know if someone asked for it before,but it would be really convenient if the coins option was placed right in the item properties than having to open the Block Content menu every time you want coins in blocks.

I think something useful for the editor would be a "filler block replacement" function. A "filler block" is the block that goes in the middle of platforms. For example, this is the filler block for the SMB3 Wood tileset:

block-16.gif (953 Bytes) Viewed 807 times

What the function would do is replace some of the "filler block" with other blocks that you chose. The dialog would look something like this:

Capture.PNG (3.69 KiB) Viewed 807 times

I know it doesn't look that good, but I built it in Multimedia Fusion in about 5 minutes.The drop-down box on the top would be where you selected the filler block (with an image preview, of course). The left column would be where you selected the blocks to replace it with, and on the right, you would input the chance (probably a percentage) that the filler block would be replaced with this block. Then, you would hit "apply," and the blocks would be replaced. If the block that replaced the filler block was larger than the filler block, all the blocks it overlapped would just be overwritten.

This would be very useful because decorating the interiors of platforms can be tedious, but not decorating them can make it look rather bland. It would shorten the time spent to make levels look aesthetically pleasing and allow for more time to focus on the actual level design.

There could be a similar function for BGOs (similar to the one in Super Mario Maker, but optional). It would place BGOs for you when used, then you could adjust any that didn't look the way you liked.

Sambo wrote:This would be very useful because decorating the interiors of platforms can be tedious, but not decorating them can make it look rather bland. It would shorten the time spent to make levels look aesthetically pleasing and allow for more time to focus on the actual level design.

There could be a similar function for BGOs (similar to the one in Super Mario Maker, but optional). It would place BGOs for you when used, then you could adjust any that didn't look the way you liked.

This should be a part of Smart Blocks Feature which auto-connects blocks according to customizable table and relativity to empty spaces.

Yoshi021 wrote:What about when placing an item, you can hold ctrl or alt to trigger "disable auto-align" and "overlap" respectively. Also, it would be nice if you could implement the Overlap placement.

I think, that is not hard to make (just check state of pressed Ctrl or Shift key while mouse moving and mouse releasing to temporary enable disabling of auto-aligning and enabling overlapping [disable collisions], currently allowing of overlapps done with disabling collisions, and you able to overlap elements while it already placed, while moving from one position to other. Buth I'll check out for Ctrl/Shift usage to disable aligning and enabling overlap in placing process )

Pilzinsel64 wrote:But i need to resize this blocks. Because this texture is from a tileset of an nsmbw hack (because this textures are better locking and are bigger) and sometimes i need only a part of the texture instand of the whole texture.

As example ...

PGE:

SMBX-38A:

...

All what i need is this, if it's possible to inclued it in the PGE-Editor. I play my levels on SMBX-38A and not in the PGE-Engine.:

And i don't mean this to resize sizeable blocks:

Can you remeber this?You sad you will add a "Custom Size" option, but i can't find their.

Pilzinsel64 wrote:You sad you will add a "Custom Size" option, but i can't find their.

That applying to sizable blocks only (you will see text fields in the properties boxes), but what you needed for non-sizable blocks is a "cropping mode" to have block which showing part of source texture

Pilzinsel64 wrote:You sad you will add a "Custom Size" option, but i can't find their.

That applying to sizable blocks only (you will see text fields in the properties boxes), but what you needed for non-sizable blocks is a "cropping mode" to have block which showing part of source texture

SMBX-38A shows me the part of my custom textures, wich i can see of the original texture too. After i changed the block size, i can see the selected part of the texture.

Example:Original texture is 32x32.But i'm using a custom texture, which is 32x128.SMBX shows me 32x32 pixle of the custom texture, because the original texture is 32x32:

Wohlstand wrote:I understood you, but I wasn't implemented ability to use part of block texture instead of whole yet, because was been busy with another core things. Anyway I going to implement this very soon

You need only one texture instand of two, three, ore more. You can have the texture as big as you need. As example, if i have a 32x128 grass texture and i need only 32x64, then i can have it using the same texture. SMBX saves the size in the levelfile too.

... you don't understand the advantages. 5438A38A hasn't in vain insert this function.

EDIT: Oh sorry! Please excuse me! My english is not the best, i understood "very soon" as "in a long time" and forgot that "very soon" meens the opposit. I'm realy sorry.So, please excuse me Wohlstand, I'm realy sorry! And Thanks that you will implement it!

- Block, Npc, Background and Player Editor within PGE Editor- more zelda 2 and metroid content and in their separate categories- combine lava water and quicksand into single liquid region and make it have properties this will allow the player to create water, water currents, lava, acid, and different strengths of quick sand- 4 player support- make everything in the editor and game a lua script! this will allow people to add additional config properties to their level editor. something like what you have going in the additional setting tab in scripts

Shadowblitz16 wrote:- Block, Npc, Background and Player Editor within PGE Editor- more zelda 2 and metroid content and in their separate categories- combine lava water and quicksand into single liquid region and make it have properties this will allow the player to create water, water currents, lava, acid, and different strengths of quick sand- 4 player support- make everything in the editor and game a lua script! this will allow people to add additional config properties to their level editor. something like what you have going in the additional setting tab in scripts

1) If you mean to make custom graphics that will be implemented in the future2) That could be added into the SMB Xpanded configure pack3) I don't think Lava needs to be a liquid since it can't really be customizable, its just a inta-death block5) The AI for NPCs and other data are in Lua.