Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - WD-40

Pages: 1 2 [3]
31
SCI Syntax Help / SCI0 newRoom transition effects bugged?
« on: July 24, 2015, 04:04:03 PM »
Hello, this is my first post. I would like to address an issue about the SCI0 game template, but first a little about me. I'm a nooby SCI programmer, just started a couple weeks ago. However, I'm not new to programming and have been at it for a couple decades now. I'm a major fan of all the Sierra adventure games and am excited to have found this community!

Now about my problem: I wanted to make the screen checkboard fade out/in when changing rooms, but I couldn't find any information about how to do it on this forum or in the source code of other fan games. After looking at the template code for a couple hours I determined that the following code snippet was put in the wrong class:

(if(< paramTotal 2)
    = gDefaultPicAni Random(0 5)
)(else
    = gDefaultPicAni picAni
)

I moved this snippet from "Main.sc: instance public Template of Game, method (newRoom roomNum picAni)" to "Game.sc: class Rm of Rgn, method (newRoom newRoomNum picAni) and now newRoom transition effects work properly just by doing the following:

(send gRoom:newRoom(2 dpCLOSEREOPEN_CHECKBOARD))

Let me know if this is a bug that has already been addressed, or if I'm completely mistaken (I'm still really new to SCI programming)

Thanks!

Pages: 1 2 [3]

SMF 2.0.19 | SMF © 2021, Simple Machines
Simple Audio Video Embedder

Page created in 0.026 seconds with 20 queries.