Special screens.

axbakk

Member
Now i got the special screens to work.. thank you guys. 😊
But a new problem..
From level 1 screen to the actual level it warps but my player got stuck When entering level 1.. the animations work (left, right) but no movement No projectile. He can jump.
This does not happen When i warp to level 2.
Both cutscene screen are similar just different warp in and warp out settings.. πŸ€”
Why is this happening?
 

Raftronaut

Member
Maybe there are some incorrect collisions perhaps? I do this all the time when I am not paying attention.

There is the "show collisions" button on the top right of your screens. It is worth a shot to make certain you are not accidentally warping your player onto solid tiles...
 

axbakk

Member
Checked that but thats not the problem. No solid objects were player is warping till. Seems like the whole level is behaving strange after got the cutscene work. If a place the player onto screen one of level one you can play the game Bute it glitches out and background music Will not start over if you die. If i warp to level one throu the cutscene player got stuck. But just level 1.
When the game warps to level 2 by a second cutscene everything works fine in that level.. (placing player on last screen of level 1 and hit the win level flag). πŸ€”
 

axbakk

Member
Got the glitchy level to work correctly now. Were a bad monster obj that made it crash. Changed it and the level plays fine.
Have managed to ser up some sounds today also and som music for the project. Thats nice.

But still problem with the first warp. And the music wont start over if you die until you are game over and get your 3 new lives.. for to dig in to this more tomorrow.

Cheers 😊
 

dale_coop

Moderator
Staff member
For the music... check your Player Lose life script... should find a "StopSound" line, just comment out that line.

About your issue with he first warp... it might an issue in your warp script.
Which script are you using? you made any modification?
 

axbakk

Member
Ok going to check that out tonight.

The warp script im Using is the script you can choose as an action of an enemy. Whats funny is that the second warp from level 1 to level 2 works and the player is not getting stuck on level 2.
Using an exact copy of the first warp But just changed the warp in and out settings.
 

dale_coop

Moderator
Staff member
If the 2nd warp works and its using the same script... in means that your first screen has a problem?
Sprite Zero issue? (do you have the same warp issue when you uncheck the "Use Sprite Zero" in Hud & boxes?)

Another test, if you start the game directly to the pre-level 2,(skip the level 1), do you have the same warping issue?
 

axbakk

Member
Got the music working now.. it was the player death script. Thanks..

I have not tried to place player on level 2 cutscene screen yet.. just got to win flag on level 1 make it warp to level 2 cutscene screen.. and that works fine.
Have tested to warp from Another screen into level 1 cutscene but same result.. stuck on level 1.. But Will try more tonight When the kids is asleep. 😊
 

axbakk

Member
tested to uncheck "use sprite zero" - no change (stuck in level 1)
made my win flag on level 2 warp to level 1 cutscene to test ( between level 1 and level 2 that works) - no change (stuck in level 1)
copy cutscene 2 screen and made the copy level 1 cutscene (changed the warp out/in only) - no change (stuck in level 1)
tested to put player on level 2 cutscene and started from there - player stuck on level 2 ( but works fine if it warps from the level 1 win flag).
 

axbakk

Member
:roll: :?: and now i got stuck after level2 cutscene also.. havent changed anything more than adding monsters to the level 2.. just stopped working..
 

axbakk

Member
Sure thing. 😊 fix that after work.

A thought..
My cutscene monster is all black squares in a animation of 8 frames.. maybe that is the problem that a moster is made of an ”transparent” color. Know i had problem with the Sprite zero of the cutscene screen When a had an all black tile (even solid) over the Sprite zero area.. πŸ€”
What do you think?
 

dale_coop

Moderator
Staff member
No problem for your warp monster to be all black.
8 frames? you need animation for an invisible monster?

For your sprite zero you need it( the sprite zero) to get a collision with a non transparent pixel: so if your sprite zero is at the classic position (right bottom fo the hud area), you need to place a color there! Could you share a screenshots of your sprite zero settings and of your screen (pre-level, in the the screen editor)?
 

axbakk

Member
Yeah i have the animation like an timer. Action step 0 β€”-> advance, action step 1 β€”β€” > warp to screen.
Is there a better way to do that?

Sure fix some screenshots When the small kids are asleep. 😊
 

axbakk

Member
Some pictures of my settings.. hope this helps finding my problem. 😊
 

Attachments

  • E0B99F30-66E4-416D-B384-CC6BD4AEE281.jpeg
    E0B99F30-66E4-416D-B384-CC6BD4AEE281.jpeg
    55.6 KB · Views: 650
  • 1850B454-B2E2-4C8F-A222-039256F8CEC6.jpeg
    1850B454-B2E2-4C8F-A222-039256F8CEC6.jpeg
    83.8 KB · Views: 650
  • A8149D5D-7A93-4079-AE84-A171FFE18E85.jpeg
    A8149D5D-7A93-4079-AE84-A171FFE18E85.jpeg
    86.3 KB · Views: 650
  • 54A48EF2-0B9A-4196-A8B2-61FB3E17B80B.jpeg
    54A48EF2-0B9A-4196-A8B2-61FB3E17B80B.jpeg
    92.9 KB · Views: 650
  • 3A04E65A-6A57-482C-B468-7F3FE7260832.jpeg
    3A04E65A-6A57-482C-B468-7F3FE7260832.jpeg
    97.5 KB · Views: 650
  • C4824417-31F9-4B5E-AF25-976DD7A44214.jpeg
    C4824417-31F9-4B5E-AF25-976DD7A44214.jpeg
    94 KB · Views: 650
  • 6A6766DC-5B43-4EE9-955C-ADA4CA23137C.jpeg
    6A6766DC-5B43-4EE9-955C-ADA4CA23137C.jpeg
    95.1 KB · Views: 650
  • F145AA53-86E3-47B6-9DD1-C1285CCF3348.jpeg
    F145AA53-86E3-47B6-9DD1-C1285CCF3348.jpeg
    64.3 KB · Views: 650
  • 9004E2AF-E2DF-43AA-B084-EAE97192F5E5.jpeg
    9004E2AF-E2DF-43AA-B084-EAE97192F5E5.jpeg
    117 KB · Views: 650

dale_coop

Moderator
Staff member
Ok... everything you are sharing here looks correct.
Your sprite 0 (on that "level: 1" screen) should be ok, because it will get a collision with the pink tile.
The script you shared is not the one that your monster is using... the "Go To Warp" is the "Action Anim End 9" script.
Could you share it?
 

dale_coop

Moderator
Staff member
You should not modify script in wordpad. I'd recommend notepad (or install Notepad++)... or you can even use NESmaker itself, there is a script editor:

2019-10-21-22-10-36-NES-MAKER-4-1-5-Version-0x159-Oofs-Haunted-001-MST.png
 

dale_coop

Moderator
Staff member
About your WarpScript... For testing purpose, you could try replacing it with that one:

Code:
LDA #$00
STA newGameState

 LDA warpMap
 STA currentMap
 CLC
 ADC #$01
 STA temp
 GoToScreen warpToScreen, temp, #$02
 
 LDA #$00
 STA playerToSpawn
 
 LDX player1_object
 DeactivateCurrentObject
 
 LDA #$01
 STA loadObjectFlag
 
 LDA mapPosX
 STA newX
 LDA mapPosY
 STA newY
 
Top Bottom