Prize Tile

The_Siege

New member
Hi. Im using an Adventure MOD Base. I am working through some HUD features and I decided to use a Prize Tile like in the Maze MOD Base. I set up my User Variables and then went into the code to choose number values and placement. (1's,10's,100's etc) Then it worked as expected. Except its changing not only the tile ( back to Null) but it is also changing the tileset on my floor to a black square. I cannot find what black square the script is targeting or else I would attack the problem by doing a tileset shuffle and putting a floor tile there and making a new black square somewhere else.

The code I am using is exactly the Maze MOD Prize Tile script.
I tried blocking out the ChangeTileAtCollision #$00, #$00 and when I do it stops the floor from changing, but the prize tile isn't taken away and you can sit on the score counter forever and score a million points. Do I create a target on a the tileset for the room I'm in ? Hope someone can help Thanks

The_SIege
 

Attachments

  • MazePrizeblock code.jpg
    MazePrizeblock code.jpg
    76.9 KB · Views: 11

dale_coop

Moderator
Staff member
In
Code:
 ChangeTileAtCollision #$00, #$00
The first parameter (#$00) is the collision type of the new tile (00 is null walkable)
The second parameter (#$00) is the tile id (index of the tile in the tileset) of the new tile (00 is first tile -topleft- of your tileset)

Here, the index from the tileset:
2020-12-03-12-32-09-NES-MAKER-4-5-9-Version-0x176-Twelve-Days-NESmas-MST.png

(#32 in decimal = #$20 in hex)

Here, the tile id directly from the screen editor:
2020-12-03-12-39-15-NES-MAKER-4-1-5-Version-0x159-KUBO3-MST.png



In that exemple, if I want to replace the prize tile by a "skull solid tile" when collected, the code would be:
Code:
 ChangeTileAtCollision #$01, #$20
or
Code:
 ChangeTileAtCollision #$00, #32
(where #$01 or #01 is for "Solid" collision data and #$20 or #32 is for my skull tile id)
 
Last edited:

The_Siege

New member
Thank you. I finally got it sorted by bending to the script better. Moving the tile target did not work for me and I did some tile shuffling. I am using Adventure MOD so it must be related to other code like auto-spawning the floor tiles when you move from room to room.
 
Last edited:
Top Bottom