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 - screenbert

Pages: [1]
1
Ok I didn't get an answer so I spent hours pulling my hair, catching up on the basics. I've found my solution and I have to admit I've learned more than if someone had just handed me the answer.

I'm sure there are other ways of doing it using the same basic logic, but here is what I did. Down below under method (doit) I added this and took out the send gRoom used with the code that changed the view:

    (if(== (send gEgo:view) 008 and == (send gEgo:cel) 9)
      (send gRoom:newRoom(3))
    )



2
That works great as long as I don't send ego to the next room. If I send him to the next room, he  goes there before he disappears using the new view which "transports" him. The wait does indeed wait, but it does not allow the view to cycle through. Any ideas on that one?

3
I've created a view (view 008) that is a transport view of the ego character.  Then when ego uses the communicator to "transport" I hide ego and init the transport, which needs to grab the current ego position and viola! he's gone. However due my years since using C I'm very rusty on the syntax. I can't seem to pull the ego properties for x and y. Let me know if there is any other information I am missing. Here are the two pieces of applicable code:

        (if(Said('use/communicator'))
         (if(send gEgo:has(INV_COMM))
           (send gEgo:hide(1))
           (Transport:init())
           (Transport:setLoop(1) cycleSpeed(1) setCycle(End))
           Print("Beam me up Scotty!")
           Wait(180)
           send gRoom:newRoom(3)
         )
          (else
            Print("You don't have a communicator.")
         )

(instance Transport of Prop
  (properties
    /* y 150
    x 130 */
    y gEgo(properties(y))
    x gEgo(properties(x))
    view 008
  )
)

Pages: [1]

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

Page created in 0.035 seconds with 21 queries.