I think my compiler is broken

Ask and answer questions about making games and related topics. Unrelated topics go in that other forum.

Moderators: marionline, SDHawk

Post Reply
User avatar
Matokage
Slime Knight
Posts: 275
Joined: Sat May 26, 2012 11:48 pm
Contact:

I think my compiler is broken

Post by Matokage »

I´m trying to run this simple script but it´s unable to end, it kinda frezes at the last fade screen out.

Code: Select all

include, plotscr.hsd

plotscript, intro, begin
	suspend player
	show backdrop (0)
	show textbox (1)
	wait for textbox
	show map
	focus camera (17,14,100)
	wait (1)
	show textbox (2)
	wait for textbox
	show textbox (3)
	wait for textbox
	show textbox (4)
	wait for textbox
	show textbox (5)
	wait for textbox
	play sound (0,false,false)
	wait (24)
	show textbox (6)
	wait for textbox
	show textbox (7)
	wait for textbox
	show textbox (8)
	wait for textbox
	show textbox (9)
	wait for textbox
	show textbox (10)
	wait for textbox
	show textbox (11)
	wait for textbox
	wait(10)
	set npc direction (npc reference (1,1),north)
	wait (5)
	show textbox (12)
	wait for textbox
	walk npc (npc reference(1,2),west,5)
	wait for npc (npc reference(1,2))
	walk npc (npc reference(1,2),north,1)
	wait for npc (npc reference(1,2))
	teleport to map (0,1,1)
	wait(1)
	focus camera (18,8,100)
	wait (1)
	fade screen out (23,00,23)
	wait (5)
	fade screen in
	wait (3)
	fade screen out (00,23,23)
	wait (5)
	fade screen in
	wait (3)
	fade screen out (23,23,00)
	wait (5)
	fade screen in
	wait (3)
	teleport to map (1,18,16)
	wait(1)
	focus camera (17,14,100)
	put npc (npc reference(1,2),18,12)
	wait for npc (npc reference(1,2))
	set npc direction (npc reference(1,1),east)
	show textbox (13)
	wait for textbox
	set npc direction (npc reference(1,2),west)
	show textbox (14)
	wait for textbox
	show textbox (15)
	walk npc (npc reference(1,1),west,7)
	wait for npc (npc reference(1,1))
	advance textbox
	fade screen out
	wait (15)
	show textbox (16)
	wait (30)
	show textbox (17)
	wait (10)
	show textbox (18)
	wait (10)
	resume player
end
I can´t figure out waht is happening
"I can't buy food with glory"
User avatar
Feenicks
Metal Slime
Posts: 697
Joined: Tue Aug 10, 2010 9:23 pm
Location: ON THE AIR IN THE AIR
Contact:

Post by Feenicks »

Wouldn't you need another fade screen in at the end?
User avatar
Matokage
Slime Knight
Posts: 275
Joined: Sat May 26, 2012 11:48 pm
Contact:

Post by Matokage »

Yeah, it was just that, but i removed the fade effect completely as i´m not achieving the desired fade out and black screen after that.
"I can't buy food with glory"
TMC
Metal King Slime
Posts: 4308
Joined: Sun Apr 10, 2011 9:19 am

Post by TMC »

So you want to fade the screen out to a black screen, and then show textboxes on top of that? You need to import an totally black backdrop and use that to cover up everything. Let's assume it's number 10. Like so:

Code: Select all

fade screen out
# Now the palette is totally black
show backdrop(10)
wait(1)  # Need a wait before a fade screen in/out
fade screen in
#palette back to normal.
show textbox(1)
wait for textbox
fade screen out  # Set the palette to black again
show map # Undo the showbackdrop
wait(1)
fade screen in
Post Reply