NPC vanishing when testing, looks fine in editor (FIXED)

Need help with any SMBX game-related issues? Ask your questions here.
Forum rules
Before you make a topic/post, consider the following:
-Is there a topic for this already?
-Is your post on-topic/appropriate?
-Are you posting in the right forum/following the forum rules?
User avatar
The Dwarven Digger
Lakitu
Lakitu
Posts: 438
Joined: Sun Oct 30, 2016 11:17 am
Current Project: Currently unnamed
Location: In the mines

NPC vanishing when testing, looks fine in editor (FIXED)

Postby The Dwarven Digger » Wed Jan 17, 2018 12:40 pm

I've added a custom graphic to NPC-88, the SMB1 coin. However, despite looking fine in the editor, it is invisible when testing. The same graphic works with the SMB3 coin, but I'm not using it for a specific reason. I have also used a text file (named npc-88.txt), with the following:

Code: Select all

gfxwidth=28
width=28
framespeed=16
And the graphic I'm using has 4 frames (the same as the SMB1 coin) which are 28x32px each. The height is the same as the SMB1 coin, so isn't in the txt file. The graphic and mask are named correctly, and the mask is also made properly. What is going wrong? I'm using the PGE/2.0 editor, and testing with the standard engine.
Last edited by The Dwarven Digger on Wed Jan 17, 2018 3:03 pm, edited 1 time in total.
I support: show
Image
Image
Due to a problem with my laptop, all my projects and levels have been lost. But fear not, for new ones will be arriving! (and hopefully completed)
Spoiler: show
rockythechao wrote:Image

User avatar
Taycamgame
Gold Yoshi Egg
Gold Yoshi Egg
Posts: 1073
Joined: Mon Jun 19, 2017 11:35 am
Current Project: Mario's Kingdom Adventure (Now part of the Novaverse!)
Chat Username: Taycamgame
Contact:

Re: NPC vanishing when testing, looks fine in editor

Postby Taycamgame » Wed Jan 17, 2018 3:00 pm

Can we have a screenshot of the coin and where you have placed them in a level? Sometimes NPC's can glitch if they are on the edges of a section boundary.
Official Level Reviewer (My Gold Yoshi Egg rank replaced the level reviewer icon, but i am still a level reviewer).
Check out my Episodes:
ImageImage
Check out the World Map Service that i host:
viewtopic.php?p=316733#p316733
Check out the projects i support:
Spoiler: show
ImageImageImage
Image
Image
Quotes: show
xDestroy wrote:
Wellington Games wrote:Taycamgame, I know how to take screenshots in the SMBX.

User avatar
The Dwarven Digger
Lakitu
Lakitu
Posts: 438
Joined: Sun Oct 30, 2016 11:17 am
Current Project: Currently unnamed
Location: In the mines

Re: NPC vanishing when testing, looks fine in editor (FIXED)

Postby The Dwarven Digger » Wed Jan 17, 2018 3:02 pm

It appears to work after I added height and gfx height to the .txt file. For some reason it wants either both dimensions or neither to display properly
I support: show
Image
Image
Due to a problem with my laptop, all my projects and levels have been lost. But fear not, for new ones will be arriving! (and hopefully completed)
Spoiler: show
rockythechao wrote:Image

User avatar
bossedit8
Toad
Toad
Posts: 6826
Joined: Fri Dec 20, 2013 12:35 pm
Current Project: Airship Attack 2
Location: Germany (Deutschland)
Chat Username: <3 bossedit8 <3
Contact:

Re: NPC vanishing when testing, looks fine in editor (FIXED)

Postby bossedit8 » Thu Jan 18, 2018 5:40 am

It's how it is with SMBX and I can totally understand that since I was messing around with NPC codes a lot when it existed and such. Glad it worked out at the end on your side though.


Return to “Help and Support”

Who is online

Users browsing this forum: No registered users and 3 guests