Jerky movement infinite x-tile

Non-platform specific questions.

Jerky movement infinite x-tile

Postby d-soldier » Thu May 03, 2007 9:45 pm

SEE ATTATCHED IMAGE:

I've noticed a jerky motion in my current project on my "ground" image while is infinately x-tiled. I've adjusted various settings, and even exported the game to verify that it jerks during compiled gameplay as well. The actor's DRAW ACTOR SCRIPT is:
"xvelocity = -2;"
... every few seconds it jerks back and forth a couple pixels... My framerate is remains between 29/30, and there is no apparent cause, as it happens during various intervals of the moving actor (no specific point during the scrolling) Is there a better way to do this?
Attachments
apache_help2.jpg
User avatar
d-soldier
 
Posts: 703
Joined: Sun Apr 08, 2007 2:13 am
Score: 61 Give a positive score

Postby makslane » Fri May 04, 2007 12:10 am

I think you need to change the x value, not xvelocity.
makslane
Site Admin
 
Posts: 3947
Joined: Sat Apr 05, 2003 6:47 pm
Score: 182 Give a positive score

...

Postby d-soldier » Fri May 04, 2007 12:24 am

I just checked through the variables/functions sections and didnt see anything relating to xvalue... and the script editor doesn't seem to accecpt it as a command either.???
User avatar
d-soldier
 
Posts: 703
Joined: Sun Apr 08, 2007 2:13 am
Score: 61 Give a positive score

Postby makslane » Fri May 04, 2007 12:28 am

I mean the x position:

Code: Select all
x -= 2;


But, looking your code again, I see you don't change the xvelocity value every frame. So, you can set the xvelocity outside of the 'Draw Actor' event.
makslane
Site Admin
 
Posts: 3947
Joined: Sat Apr 05, 2003 6:47 pm
Score: 182 Give a positive score

Postby Sgt. Sparky » Fri May 04, 2007 12:28 am

x -= 2;
xD
alot simpler than you think. :D
(funny name for setting an x value right? :P )
Image
Random Links:
viewtopic.php?p=19474#19474
Right now (10/14/2009) I'm working on some C++ projects, but I might be able to help if you have some Game Editor questions. :)
User avatar
Sgt. Sparky
 
Posts: 1850
Joined: Sat Oct 07, 2006 5:28 pm
Location: Somewhere out there, beneath the pale blue sky...
Score: 236 Give a positive score

Postby Sgt. Sparky » Fri May 04, 2007 12:29 am

makslane posted it just before me! :lol:
Image
Random Links:
viewtopic.php?p=19474#19474
Right now (10/14/2009) I'm working on some C++ projects, but I might be able to help if you have some Game Editor questions. :)
User avatar
Sgt. Sparky
 
Posts: 1850
Joined: Sat Oct 07, 2006 5:28 pm
Location: Somewhere out there, beneath the pale blue sky...
Score: 236 Give a positive score

thanks

Postby d-soldier » Fri May 04, 2007 3:10 pm

Thanks for the input fellas, I appreciate the help!
User avatar
d-soldier
 
Posts: 703
Joined: Sun Apr 08, 2007 2:13 am
Score: 61 Give a positive score


Return to General

Who is online

Users browsing this forum: No registered users and 1 guest