Page 1 of 1

Bug? View Actor

PostPosted: Sat Apr 24, 2004 10:54 am
by jazz_e_bob
http://www.maybanana.com/pantzboi/game_editor/view_test.ged

place actor named "centre" at 0, 0.

place view so that actor named "centre" is at the centre of your view.

Image

PostPosted: Sat Apr 24, 2004 11:04 am
by ingsan
What i'm seeing is that this problem comes from the view and not from the Actor. Try to change the x an y of actor, the bug stays the same :?

PostPosted: Sat Apr 24, 2004 11:17 am
by ingsan
Yeh try to do this :

on view :
x=0-(width/2) //or x=-120
y=0-(height/2) // y=-160

I found this quite easily : Just click on tha view and hold the mouse down. Now look at the coordinate bar at the far top right. A Pacman icon appears telling you the actual coordinates of the actor on which you are. I did this and the coordinats for y view was negative. So in GE, height is from top to down.

PostPosted: Sat Apr 24, 2004 11:36 am
by jazz_e_bob
http://www.maybanana.com/pantzboi/game_ ... w_test.ged

x=0-(width/2)
y=0-(height/2)

doesn't work... :(

PostPosted: Sat Apr 24, 2004 11:44 am
by ingsan
x=0-(width/2)
y=0-(height/2)


The problem definitely comes from this code because when you replace this by
    x =- 120;
    y = -160;

which is the result of the previous code, it works :?

PostPosted: Sat Apr 24, 2004 11:48 am
by jazz_e_bob
Hey Makslane.

Fix it.Fix it.Fix it.Fix it.Fix it.Fix it.Fix it.Fix it.Fix it.Fix it.Fix it.Fix it.Fix it.Fix it.Fix it.Fix it.Fix it.Fix it.Fix it.Fix it.Fix it.Fix it.Fix it.Fix it.Fix it.Fix it.Fix it.Fix it.Fix it.Fix it.Fix it.Fix it.Fix it.Fix it.Fix it.Fix it.Fix it.Fix it.Fix it.Fix it.Fix it.Fix it.

:wink:

PostPosted: Sat Apr 24, 2004 11:49 am
by ingsan
:mrgreen:

PostPosted: Sat Apr 24, 2004 11:56 am
by ingsan
Another strange thing, jazz ...

x = - width/2;
y = - heigth/2;
WORKS PERFECT!

Ifever you put :

x = 0 - width/2;
y = 0 - heigth/2;
DOESN'T WORK

PostPosted: Sat Apr 24, 2004 11:58 am
by jazz_e_bob
Ingrid is the workaround queen. :)

PostPosted: Sat Apr 24, 2004 4:00 pm
by Just4Fun
Is this the reason that my view around the actor isn't working? My head is bruised from all of the wall hitting over that one. I finally gave up.

BTW jazz,
Eeuww, you can keep that bug. (I prefer Data) :lol:

PostPosted: Sat Apr 24, 2004 6:35 pm
by makslane
I see the (0, 0) view bug. I can't found the causes, yet

PostPosted: Sat Apr 24, 2004 6:44 pm
by ingsan
Is the view.y(0) at the top Left or bottom Left of the view ?

PostPosted: Sat Apr 24, 2004 6:48 pm
by makslane
top left

PostPosted: Sat Apr 24, 2004 10:07 pm
by jazz_e_bob
Just4Fun wrote:Is this the reason that my view around the actor isn't working? My head is bruised from all of the wall hitting over that one. I finally gave up.


Most likely I would say. :cry: