Hey Chevy, thanks for all those tutorials and scripts!
I'm trying to consume all the information you've thrown out so far as much as possible, but I ran accros some problems with the view scrolling scripts.
I placed the call of the view_step_towards_point(x,y) script in the players step event. When I tested it, the player just moved outside the room really fast.
So I changed the x and y in this part
for(i=1; i<=8; i+=1){
if dist > i*i*2
{
x += lengthdir_x( i, dir );
y += lengthdir_y( i, dir );
}
}
to
for(i=1; i<=8; i+=1){
if dist > i*i*2
{
view_xview[0] += lengthdir_x( i, dir );
view_yview[0] += lengthdir_y( i, dir );
}
}
Now it works alright, but the movement of the player suddenly is really jerky at times. I suppose this is an effect that occurs when the view tries to catch up with the players position?
So I guess I still have an error somewhere - did I maybe put the script call in the wrong event?