NSMBWalls.lua - Fake Walls! (IMPORTANT UPDATE) - link fixed

Share and discuss custom LunaLua code and content packs for SMBX2.
User avatar
TheMaeru
Shy Guy
Shy Guy
Posts: 7
Joined: Tue Apr 16, 2019 10:20 am
Chat Username: TheMaeru

Re: NSMBWalls.lua - Fake Walls! (IMPORTANT UPDATE) - link fixed

Postby TheMaeru » Tue Aug 13, 2019 12:05 pm

THIS IS THE DEFINITIVE WORKAROUND:

EDIT: you just can get rid of the xRays[k]:ScaleTexture() and overlays[k]:ScaleTexture() lines, but watch out the following step:

Before each ScaleTexture, imagic.Circle{} is assigned to xRays and overlays respectively. Look for "filltype", then change imagic.TEX_FILL for imagic.TEX_PLACE. For example:
CODE: SELECT ALL

xRays[k] = imagic.Circle { radius = r, x = playerCenterX, y = playerCenterY, scene = true, texture = xRayBuffer, filltype = imagic.TEX_PLACE, texoffsetX = (centerOnScreenX - 400)/800, texoffsetY = (centerOnScreenY - 300)/600 }
And now we're done! Now it is exactly zoomed and the effect works properly!
Don't know if I did something wrong but for me the result is kinda wierd Image

User avatar
hacheipe399
Fighter Fly
Fighter Fly
Posts: 63
Joined: Mon Feb 10, 2014 12:29 pm
Current Project: Be an engineer in 5 years.

Re: NSMBWalls.lua - Fake Walls! (IMPORTANT UPDATE) - link fixed

Postby hacheipe399 » Tue Aug 13, 2019 2:32 pm

TheMaeru wrote:
Tue Aug 13, 2019 12:05 pm
Don't know if I did something wrong but for me the result is kinda wierd
Maybe you forgot to build the things behind the wall? Remember the layer nsmbwalls should be hidden in the editor, it works like a charm for me:
Image
I'm the spanish translator of the PGE Project. Please use it and give feedback to improve the software!
My LunaLua API:
Image

My currently released GFX work:
Image
Image
Image

I'm Hardcore 2 da bone.
1. for the treble.
2. for the bass

User avatar
TheMaeru
Shy Guy
Shy Guy
Posts: 7
Joined: Tue Apr 16, 2019 10:20 am
Chat Username: TheMaeru

Re: NSMBWalls.lua - Fake Walls! (IMPORTANT UPDATE) - link fixed

Postby TheMaeru » Tue Aug 13, 2019 5:31 pm

Maybe you forgot to build the things behind the wall? Remember the layer nsmbwalls should be hidden in the editor, it works like a charm for me:
No, it's not that I've checked

User avatar
MegaDood
Birdo
Birdo
Posts: 1459
Joined: Wed Nov 01, 2017 2:43 am
Current Project: Super Mario Bros. Twisted Realities
Chat Username: Mega

Re: NSMBWalls.lua - Fake Walls! (IMPORTANT UPDATE) - link fixed

Postby MegaDood » Sat Aug 17, 2019 8:49 pm

I can't get anything other than the dummy block to display as the graphic when using this script. I've checked that my graphics are all PNGs, I don't know where I would look other than my level folder and default graphics folder. Does anyone know how I would fix this?
My Project:
Image
I don't really have a signature but here's what I support:

Image
Image
Image
Image

User avatar
Daring Tombstone
Bit
Bit
Posts: 131
Joined: Mon Aug 28, 2017 10:57 pm
Flair: Sad I didn't fight Jirachi
Current Project: Something Maybe
Chat Username: Chaperone

Re: NSMBWalls.lua - Fake Walls! (IMPORTANT UPDATE) - link fixed

Postby Daring Tombstone » Sat Aug 31, 2019 6:56 pm

I get the same effect as the Maeru.

Image

Everything in the circle is slightly blurry looking. You can tell by the orange mushroom on the left. The right side is warped while the left is fine.

I can deal with it though. Just wondering if this is what everyone else gets.
Happy Dance
Image
Check out my completed episode
Spoiler: show
Image
Check out my halloween level
Spoiler: show
Image

User avatar
Dannygarbage
Goomba
Goomba
Posts: 2
Joined: Mon Sep 02, 2019 3:19 pm
Flair: Alien Garbage
Current Project: Music, but also wanna make an episode that feels like a real Mario adventure.
Chat Username: TRASHDAN
Contact:

Re: NSMBWalls.lua - Fake Walls! (IMPORTANT UPDATE) - link fixed

Postby Dannygarbage » Mon Sep 02, 2019 3:35 pm

hey, im not sure if this has been asked/fixed already so sorry if this is a repost, but im trying to implement this in a level, and it worked but the x ray showed a zoomed out version of the whole camera. i found a way to fix that by changing the scaletexture to 128 and the (2 * r)'s to 2.5, but now the textures are squished a bit and i can't figure out how to make it look like it does in the video. any help would be appreciated! heres images of the problems.
Image

Image
The embodiment of pure garbage

User avatar
FirestarPlays
Pokey
Pokey
Posts: 214
Joined: Tue Feb 28, 2017 1:26 pm
Current Project: Super Mario and the Plague of Valerius
Chat Username: Firestar

Re: NSMBWalls.lua - Fake Walls! (IMPORTANT UPDATE) - link fixed

Postby FirestarPlays » Tue Oct 08, 2019 9:27 pm

Dannygarbage wrote:
Mon Sep 02, 2019 3:35 pm
hey, im not sure if this has been asked/fixed already so sorry if this is a repost, but im trying to implement this in a level, and it worked but the x ray showed a zoomed out version of the whole camera. i found a way to fix that by changing the scaletexture to 128 and the (2 * r)'s to 2.5, but now the textures are squished a bit and i can't figure out how to make it look like it does in the video. any help would be appreciated! heres images of the problems.
Image

Image
I'm having the exact same issue!
Image

User avatar
Wiimeiser
Rex
Rex
Posts: 97
Joined: Mon Jun 24, 2019 4:36 am
Flair: What?
Chat Username: Wiimeiser

Re: NSMBWalls.lua - Fake Walls! (IMPORTANT UPDATE) - link fixed

Postby Wiimeiser » Thu Oct 10, 2019 1:26 am

Looks like this is in need of a compatibility update...

User avatar
Dannygarbage
Goomba
Goomba
Posts: 2
Joined: Mon Sep 02, 2019 3:19 pm
Flair: Alien Garbage
Current Project: Music, but also wanna make an episode that feels like a real Mario adventure.
Chat Username: TRASHDAN
Contact:

Re: NSMBWalls.lua - Fake Walls! (IMPORTANT UPDATE) - link fixed

Postby Dannygarbage » Thu Oct 10, 2019 2:06 am

big oof
The embodiment of pure garbage

User avatar
Dark Soron
Spiny
Spiny
Posts: 52
Joined: Sun Jan 29, 2017 10:34 pm
Current Project: The Dimensional War
Chat Username: Soron.exle
Contact:

Re: NSMBWalls.lua - Fake Walls! (IMPORTANT UPDATE) - link fixed

Postby Dark Soron » Tue Nov 19, 2019 9:59 pm

I tried to use the walls in one of my recent levels, but the wall in question still acts like a real wall. What am I missing that needs to be changed?

User avatar
1AmPlayer
Volcano Lotus
Volcano Lotus
Posts: 518
Joined: Sun May 21, 2017 3:36 am
Flair: I'm a hellspawn.
Current Project: SMB: Faraway Islands (Work in Progress Name)
Chat Username: IAmPx
Contact:

Re: NSMBWalls.lua - Fake Walls! (IMPORTANT UPDATE) - link fixed

Postby 1AmPlayer » Tue Nov 19, 2019 11:04 pm

Dark Soron wrote:
Tue Nov 19, 2019 9:59 pm
I tried to use the walls in one of my recent levels, but the wall in question still acts like a real wall. What am I missing that needs to be changed?
You need to place/move the blocks that wanted to be the fake walls to the layer named "nsmbwalls".

User avatar
Dark Soron
Spiny
Spiny
Posts: 52
Joined: Sun Jan 29, 2017 10:34 pm
Current Project: The Dimensional War
Chat Username: Soron.exle
Contact:

Re: NSMBWalls.lua - Fake Walls! (IMPORTANT UPDATE) - link fixed

Postby Dark Soron » Wed Nov 20, 2019 6:32 am

1AmPlayer wrote:
Tue Nov 19, 2019 11:04 pm
Dark Soron wrote:
Tue Nov 19, 2019 9:59 pm
I tried to use the walls in one of my recent levels, but the wall in question still acts like a real wall. What am I missing that needs to be changed?
You need to place/move the blocks that wanted to be the fake walls to the layer named "nsmbwalls".
I do have the blocks in the "nsmbwalls" layer. I think what i'm missing is the code itself. This is the first time working with a luna.lua file so I'm not sure how to type in the code so that it functions.
And before you mention it, I have been watching the tutorials for it as well.


Return to “LunaLua”

Who is online

Users browsing this forum: No registered users and 2 guests