Page 9 of 13

Re: Turtle Isle (age problems)

Posted: Sun Jan 30, 2011 5:48 am
by diafero
The visual waveset and the swimming regions with its current are completely independent from each other.

Re: Turtle Isle (age problems)

Posted: Sun Jan 30, 2011 6:08 pm
by tachzusamm
dendwaler wrote:The avatar is pushed out of the water for nearly a full avatar length, when he enters this region.
Far more then the wave height which is flattened by the large quiet part of the waveset.
The avatar's behavior seems not to be flattened and follows the peak heights.
He falls back and is pushed out again, so on and on.

My assumtion is that you did not align the Y vector of the direction empty absolutely horizontal.
Because the Y vector determines the direction, it will throw the avatar up when the direction has a Z component.

Re: Turtle Isle (age problems)

Posted: Mon Jan 31, 2011 1:56 am
by dendwaler
And again you where right!
You could hardly see it but it did have a slight rotation.
A new empty put in from top view, solved this.
It acts more naturely now.
Thx!

Re: Turtle Isle (age problems)

Posted: Mon Jan 31, 2011 4:03 am
by dendwaler
Does Quickscripting have an expressing for triggering Material_animation ?

Re: Turtle Isle (age problems)

Posted: Mon Jan 31, 2011 10:29 am
by D'Lanor
If you really mean QuickScript (= shorthand for a few common AlcScripts) then the answer is no.

AlcScript does have options for controlling layer animations.

Re: Turtle Isle (age problems)

Posted: Tue Feb 01, 2011 7:15 am
by dendwaler
Thx D'Lanor.

Unfortely I don't succeed in getting working code.

I have A Journeycloth with animated texture (glowing )
a region , a seekpoint and a soundemitter.

I cooked up this code for it:

Code: Select all

Cloth1:
   visual:
      matanims:
         - mat: Journey
           flags:
            - stopped
    logic:
        modifiers:
          - cursor: poised
            flags:
              - localelement
            activators:
              - type: objectinvolume
                remote: Cloth1Rgn
                triggers:
                  - any
            conditions:
              - type: activator
                activators:
                  - type: picking
              - type: objectinbox
                satisfied: true
            actions:
              - type: responder
                ref: :Glowing   
               sdl: Journey1
            responder:
                states:
                  - cmds:
                      - type: oneshotmsg
                        params:
                            receivers:
                              - oneshotmod:Cloth1_Seek
                            callbacks:
                              - marker: DoorButtonTouch
                                receiver: respondermod:Glowing                   
                                user: 0
                        waiton: -1
                 - type: animcmdmsg
                       params:
                              receivers:
                              - 0043:Journey-Glow                     
                            cmds:
                              - continue
                        waiton: 0
                      - type: soundmsg
                        params:
                            receivers:
                              - 0011:Tisle_journey
                            cmds:
                              - play
                        waiton: -1
                    nextstate: 0
                    ncallbacks: 1
                    waittocmd:
                      - key: 0
                        msg: 0
                curstate: 0
                flags:
                  - detecttrigger

Cloth1_Seek:
   logic:
      actions:
         - type: oneshot
           name: Cloth1_Seek
           oneshot:
               animation: DoorButtonTouch

         
Cloth1_se:
   type: soundemit
   sound:
      flags:
         - is3dsound      
         - localonly
      file: Tisle_journey
      volume: 1
      minfdist: 20
      maxfdist: 50   
      type: SoundFX


the cloth animation never stops
does not react on a touch
no avatar animation.
and no sound.

Can you correct this ?

i need an sdl in it for remembering all the cloth touches.
I think i need one for every cloth, or can i use a string with flags?

Re: Turtle Isle (age problems)

Posted: Tue Feb 01, 2011 8:19 am
by D'Lanor
Is Cloth1 the actual object with the layer animation? It won't work on any object.

You did not name your responder so the click had no effect. Edit: I have now named it Cloth1Glowing.

Code: Select all

Cloth1:
    visual:
        matanims:
          - mat: Journey
            flags:
              - stopped
    logic:
        modifiers:
          - cursor: poised
            flags:
              - localelement
            activators:
              - type: objectinvolume
                remote: Cloth1Rgn
                triggers:
                  - any
            conditions:
              - type: activator
                activators:
                  - type: picking
              - type: objectinbox
                satisfied: true
            actions:
              - type: responder
                ref: :Cloth1Glowing
        actions:
          - type: responder
            name: Cloth1Glowing
            responder:
                states:
                  - cmds:
                      - type: oneshotmsg
                        params:
                            receivers:
                              - oneshotmod:Cloth1_Seek
                            callbacks:
                              - marker: DoorButtonTouch
                                receiver: respondermod:Cloth1Glowing
                                user: 0
                        waiton: -1
                      - type: animcmdmsg
                        params:
                            receivers:
                              - 0043:Journey-Glow
                            cmds:
                              - continue
                        waiton: 0
                      - type: soundmsg
                        params:
                            receivers:
                              - 0011:Tisle_journey
                            cmds:
                              - play
                        waiton: -1
                    nextstate: 0
                    ncallbacks: 1
                    waittocmd:
                      - key: 0
                        msg: 0
                curstate: 0
                flags:
                  - detecttrigger

Cloth1_Seek:
    logic:
        actions:
          - type: oneshot
            name: Cloth1_Seek
            oneshot:
                animation: DoorButtonTouch

         
Cloth1_se:
    type: soundemit
    sound:
        flags:
          - is3dsound     
          - localonly
        file: Tisle_journey
        volume: 1
        minfdist: 20
        maxfdist: 50   
        type: SoundFX


I will post something about the sdl later.

Re: Turtle Isle (age problems)

Posted: Tue Feb 01, 2011 10:02 am
by Jojon
I too eagerly await the answer on how to prevent material animations from looping. :)
( In Rell-Too there is a handful of matanims, that triggers in sequence. I wound up resorting to including each three times, in the responder that controls them: Once to stop them and go to frame one, before their coming into view, once to start them in turn and once to stop and reset them again, following a timer callback each. :P )

Re: Turtle Isle (age problems)

Posted: Tue Feb 01, 2011 10:03 am
by dendwaler
Is Cloth1 the actual object with the layer animation? It won't work on any object.


I don't understand . I thought a material is always applied to an object.

The Journeycloth (object Plane) has two layers.
The second layer opacity goes from 0 to 1 by the col slider in "map to" with an Ipo curve.
This ipo should be triggered by touching the cloth as a oneshot.

I used your edited code.
result:
touch animation is working.
Layer animationg is looping before and after the touch.
No Sound


{Edit}
If what I initially wanted is not possible then i have found the next solution.
i place two clothes behind each other.
1 with a not animated texture and 1 with the looping animated texture.
With another ipo curve i bring the looping animation in front of the first one and back again.
What do you think of this?

Re: Turtle Isle (age problems)

Posted: Tue Feb 01, 2011 10:24 am
by D'Lanor
Correction for sound emitter:

Code: Select all

                      - type: soundmsg
                        params:
                            receivers:
                              - 0011:Cloth1_se
                            cmds:
                              - play
                        waiton: -1


I suspect naming errors elsewhere too.

Is Cloth1 the name of the object with the layer animation? Or is the object called Plane? And is Journey the name of your material? This code works if you get your naming references right. I have used it on many occasions.

Code: Select all

<name of object with the layer animation>:
    visual:
        matanims:
          - mat: <material name>
            flags:
              - stopped


And be sure not to use this same material on multiple objects.