change parent bug

Game Editor comments and discussion.

change parent bug

Postby j2graves » Sun Dec 02, 2007 3:30 pm

for making the screen follow the player I'm using the "centerview" way of doing it. however, when I make the player jump on a moving platform and use a "change parent" action, the view moves back to the place it was created until the player jumps off and the parent changes back to none. what can I do?
No games to my name...
User avatar
j2graves
 
Posts: 1302
Joined: Thu Aug 16, 2007 6:42 pm
Location: on the other side of infinity
Score: 19 Give a positive score

Re: change parent bug

Postby speckford123 » Tue Dec 04, 2007 5:46 pm

well i dont know that bug, but instead of centerview you could use a function on the view in draw actor like:

if(x<player.x)xvelocity=distace(x,y,player.x,player.y)*0.5;
if(x>player.x)xvelocity=-distace(x,y,player.x,player.y)*0.5; // I use * because / can cause errors when dividing 0

if i find an answer to your problem ill let you know
if not someone else will most likely help you soon.
speckford123
 
Posts: 334
Joined: Fri May 05, 2006 6:33 pm
Score: 49 Give a positive score

Re: change parent bug

Postby j2graves » Sat Dec 15, 2007 9:38 am

well thanx anyway. +1.

can anyone answer my original question?
No games to my name...
User avatar
j2graves
 
Posts: 1302
Joined: Thu Aug 16, 2007 6:42 pm
Location: on the other side of infinity
Score: 19 Give a positive score

Re: change parent bug

Postby Bee-Ant » Sat Dec 15, 2007 10:00 am

Why you dont use StopRight,StopLeft,StopTop,StopBottom???like in caveman???
User avatar
Bee-Ant
 
Posts: 3723
Joined: Wed Apr 11, 2007 12:05 pm
Location: http://www.instagram.com/bee_ant
Score: 210 Give a positive score

Re: change parent bug

Postby j2graves » Sat Dec 15, 2007 10:34 am

because once the player gets too far out of the view, it will stop following.
No games to my name...
User avatar
j2graves
 
Posts: 1302
Joined: Thu Aug 16, 2007 6:42 pm
Location: on the other side of infinity
Score: 19 Give a positive score

Re: change parent bug

Postby Bee-Ant » Sat Dec 15, 2007 10:42 am

Did you make it like this...
Attachments
view.PNG
User avatar
Bee-Ant
 
Posts: 3723
Joined: Wed Apr 11, 2007 12:05 pm
Location: http://www.instagram.com/bee_ant
Score: 210 Give a positive score

Re: change parent bug

Postby j2graves » Sat Dec 15, 2007 10:44 am

no but I'll try it.
No games to my name...
User avatar
j2graves
 
Posts: 1302
Joined: Thu Aug 16, 2007 6:42 pm
Location: on the other side of infinity
Score: 19 Give a positive score


Return to GE - General

Who is online

Users browsing this forum: No registered users and 1 guest

cron