YesNoOk
avatar

I just dont get envshake (Read 1952 times)

Started by supercain, July 31, 2020, 12:15:21 am
Share this topic:
I just dont get envshake
#1  July 31, 2020, 12:15:21 am
  • avatar
  • **
    • Germany
Hi,

I read the documentation over and over but I cant understand how envshake works. All I am trying to do is to make the ground go up by one screen but slowly so the floor goes off the top edge of the screen. I wrote this:

Code:
type = envshake
trigger1 = 1
ampl = 900*time
freq = 100
time = 9999
phase = 0.1

the first 50 pixels or so go up at once and after that it starts going up gradually so it looks pretty choppy. How can I adjust the values so it goes smoothly all the way up?

Thank you.
Re: I just dont get envshake
#2  August 01, 2020, 01:11:05 am
  • avatar
  • *
pheraps the freq value is too high...  try something like 10 or lower to check how it works also you could remove the phase thing ..
Re: I just dont get envshake
#3  August 01, 2020, 06:18:45 pm
  • ****
try this one

[State 200]
type = EnvShake
trigger1 = time = 1
time = 360; 360 ticks = 6 seconds
ampl = 100
freq = 1; 1 full circle for 360 ticks
phase = 0; start from 0 degree




Look at that circle, start from 0 degree, to 90 180, 270 finally 360.
the Sctrl will reflect y axis motion on your screen.

freq = 1 means  (360 ticks do 1 round)
freq = 2 means  (360 ticks do 2 rounds)
freq = 60 means  (360 ticks do 60 rounds)

and so on
ampl = 100 means at 90 degree move up 100 pixels (the radius of the circle)
ampl = + number means the circle needle goes clockwise
ampl = - number means the circle needle goes counter-clockwise

phase = 0; means start from 0 degree
phase = 90 means start from 90 degree





Last Edit: August 01, 2020, 06:25:26 pm by beterhans
Re: I just dont get envshake
#4  September 29, 2020, 07:07:36 pm
  • avatar
  • **
    • Germany
Thank you for your kind explanation. I had missed this reply.