Page 1 of 1

Problem stopping scrolling pics.

PostPosted: Sat May 12, 2007 5:44 pm
by scythe
Image


Need a little help, in the picture above the White box is the view, I would like A Pic to stay still and B Pic to scroll up and down along with C Pic following it, locked, same speed, But i want C to scroll in ANY direction (diagonal also) even under A & B. I want it to stop scrolling when it runs out of B & C Picture.

For Digipad I want to use the UP,DOWN,RIGHT,LEFT Buttons to move around a pointer and A Button to Left click. I want the pointer to scroll B & C when it reaches near the edges of screen.

For Mouse I want it to scroll around and when the pointer touches near the edges I want it to scroll B & C around like mentioned above, depending on which edge is being touched.

Does this make sense, Ive almost had the digipad control version working but cant get C Pic to stop scrolling when the pic ends.

Thanks,
scythe

PostPosted: Sun May 13, 2007 12:56 am
by makslane
I would like A Pic to stay still


Make the view parent of the actor A

B Pic to scroll up and down along with C Pic following it, locked, same speed, But i want C to scroll in ANY direction (diagonal also) even under A & B.


Make the actor B parent of the actor C.
Move the actor B only in the vertical direction.
Move the actor C only in the horizontal direction. (the composite motion will have both direction, but the y following the B actor)

PostPosted: Sun May 13, 2007 7:34 am
by scythe
I already tried that way, but C pic covers the B pic then, Z depth does not seem to effect it, maybe because of parent?.
Ive tried a few ways, atm i'm just having the x = left right movements on key downs matching the x = on B pic, it works fine and allows me to have the B pic over the C pic.

My problem is I would like B & C to stop scrolling when the end of the large pics collide with the edge of the white box so it does not scroll off into oblivion etc.

But I'd also like to be able to move a Pointer around using mouse or buttons instead and scroll the B & C pic when the pointer gets near the edge of screen in that direction (Green Box), this would also allow to click stuff when the pointer is not on the green area, unless there is a better way.

Thanks,
scythe

PostPosted: Sun May 13, 2007 12:53 pm
by makslane
scythe wrote:I already tried that way, but C pic covers the B pic then, Z depth does not seem to effect it, maybe because of parent?.


Yes

I would like B & C to stop scrolling when the end of the large pics collide with the edge of the white box so it does not scroll off into oblivion etc.


You can use wire frame regions (chideren of the view) to detect this.

PostPosted: Wed May 16, 2007 7:08 am
by scythe
Thanks makslane, I gave up on the first way of movement. I got it working by just using the buttons UP,D,L,R to move the picture which has physical collision with some large x & y line pics as the barriers to collide with, it seems to work now.

Another small problem tho is that when the pic C stops scrolling because of the above collision, if i leave my finger on the L or R movement key it starts to scroll up slowly, I used Collision, Any Side of my actor 'barrier', Repeat: Yes, Physical Response, Event Actor Only, Settings: 1,1,0,0. Is there a way to stop that happening?

Thanks,
Scythe

PostPosted: Wed May 16, 2007 7:29 pm
by makslane
Send me the game and I will take a look.