Problem stopping scrolling pics.

Game Editor comments and discussion.

Problem stopping scrolling pics.

Postby scythe » Sat May 12, 2007 5:44 pm

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
scythe
 
Posts: 37
Joined: Wed Apr 11, 2007 2:50 pm
Location: Australia
Score: 0 Give a positive score

Postby makslane » Sun May 13, 2007 12:56 am

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)
makslane
Site Admin
 
Posts: 3947
Joined: Sat Apr 05, 2003 6:47 pm
Score: 182 Give a positive score

Postby scythe » Sun May 13, 2007 7:34 am

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
scythe
 
Posts: 37
Joined: Wed Apr 11, 2007 2:50 pm
Location: Australia
Score: 0 Give a positive score

Postby makslane » Sun May 13, 2007 12:53 pm

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.
makslane
Site Admin
 
Posts: 3947
Joined: Sat Apr 05, 2003 6:47 pm
Score: 182 Give a positive score

Postby scythe » Wed May 16, 2007 7:08 am

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
scythe
 
Posts: 37
Joined: Wed Apr 11, 2007 2:50 pm
Location: Australia
Score: 0 Give a positive score

Postby makslane » Wed May 16, 2007 7:29 pm

Send me the game and I will take a look.
makslane
Site Admin
 
Posts: 3947
Joined: Sat Apr 05, 2003 6:47 pm
Score: 182 Give a positive score


Return to GE - General

Who is online

Users browsing this forum: No registered users and 1 guest

cron