Author Topic: I have some questions...  (Read 1607 times)

0 Members and 1 Guest are viewing this topic.

Offline FastaKilla

I have some questions...
« on: June 16, 2003, 07:24:47 PM »
1. How can I have it go to a room, play the loop of a view just once, then go back to the original room?

2. How can I show a message when you enter a room (just once, I tried but it keeps saying it over and over)?

3. How do you do movies/intros?  (If this is a long answer, maybe somebody could put it in the tutorial?)


PS. Bluntman & Chronic game progress
39 PICs
31 VIEWs
23 SOUNDs (24 if you count dummy)
plus 3 inventory items, and lots of misc scripting


I don't have a homepage, but I have this
http://www.gamefaqs.com/features/recognition/19253.html

Offline Eigen

Re:I have some questions...
« Reply #1 on: June 17, 2003, 12:31:19 AM »
|1|  -  To the part where you check the previous room number put:

(case THE PREVIOUS ROOM NUM
(aView: init() cel(0) setCycle(End RoomScript))

This cycles the loop from the beginning to the end once. Then to the RoomScript instance add:

(method (changeState newState)
  = state newState
  (switch (state)
    (case 0
= cycles 1
    )
    (case 1
    (send gRoom: newRoom(2)) //go back to the room you came from
    )))

|2|   -    First add another variable to the room. In to the beggining of the script to after (use "something") put:
(local
message
)
This is a local variable, which is always false when entering the room. Then add to the RoomScript instance:

(method(doit)
(if(not(message))
Print("Your message here!")
= message TRUE
)
)

Checks if the variable 'message' is false then prints a message and states the variable TRUE, so it wont show it again.

Hope it helps!

-Eigen
Artificial Intelligence Competition

Offline FastaKilla

Re:I have some questions...
« Reply #2 on: June 17, 2003, 02:19:33 AM »
Thanks!

With that information, I got a lot done on my game! ;D
« Last Edit: June 26, 2003, 05:40:55 PM by FastaKilla »
I don't have a homepage, but I have this
http://www.gamefaqs.com/features/recognition/19253.html


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

Page created in 0.019 seconds with 18 queries.