Please login or register.

Login with username, password and session length
Advanced search  

News:

Forum rules - please read before posting, it can save you a lot of time.

Author Topic: Problem with scrolling by moving actor  (Read 3306 times)

0 Members and 1 Guest are viewing this topic.

Lion

  • Regular poster
  • ***
  • Karma: 0
  • Offline Offline
  • Gender: Male
  • Posts: 101
    • View Profile
Problem with scrolling by moving actor
« on: August 18, 2006, 09:16:41 PM »

Why when the movement of actor causes scrolling of scene, it(actor) blinks and strongly shakes?

It is happen:
Scene.ScrollPixelsX = 2 or more.
Logged

Lion

  • Regular poster
  • ***
  • Karma: 0
  • Offline Offline
  • Gender: Male
  • Posts: 101
    • View Profile
Re: Problem with scrolling by moving actor
« Reply #1 on: August 19, 2006, 08:57:25 AM »

There is a following:

The actor moves to the right, a scene scrolling to the left.

The scene at movement to the left, pulls also the actor to the left on Scene.ScrollPixelsX.

Because of it the actor twitches that to the left that to the right. It is not correct.

The moving actor causing scrolling scene should not be displaced at movement scene.
Logged

Mnemonic

  • WME developer
  • Administrator
  • Addicted to WME forum
  • *
  • Karma: 41
  • Offline Offline
  • Gender: Male
  • Posts: 5674
    • View Profile
    • Dead:Code Site
Re: Problem with scrolling by moving actor
« Reply #2 on: August 19, 2006, 09:12:00 AM »

Well I guess making the scene scrolling faster than how fast the character actually moves might cause such behaviour...
Logged
Yes, I do have a twitter account
Please don't send me technical questions in private messages, use the forum. ::wave

Lion

  • Regular poster
  • ***
  • Karma: 0
  • Offline Offline
  • Gender: Male
  • Posts: 101
    • View Profile
Re: Problem with scrolling by moving actor
« Reply #3 on: August 21, 2006, 08:34:47 PM »

I have tried your advice, but it is all the same bad.

Whether you can correct a problem with scrolling, it seems to me important.

We planned to buy your engine in the end of year. How there is its support?

I now do game and I often have problems...

Whether you can correct them?
And as it is possible to receive the new(correction) version engine?
Logged

metamorphium

  • Global Moderator
  • Addicted to WME forum
  • *
  • Karma: 12
  • Offline Offline
  • Gender: Male
  • Posts: 1511
  • Vampires!
    • View Profile
    • CBE  software s.r.o.
Re: Problem with scrolling by moving actor
« Reply #4 on: August 21, 2006, 09:12:31 PM »

I am using scrolling and never experienced that problem. I would guess it's problem of your script and not of the engine. Maybe you can generate some micro version (one scene) of your project and we can look it over. There's no way how Mnemonic or anyone else could repair something which is not replicable under our conditions.

I work on couple of games and usually the problems turns out to be my own mistakes. The engine is at this state pretty solid and I don't think that your often having problems is connected to engine itself.
Logged
J.U.L.I.A. Enhanced Edition, Vampires!, J.U.L.I.A., J.U.L.I.A. Untold, Ghost in the Sheet

Lion

  • Regular poster
  • ***
  • Karma: 0
  • Offline Offline
  • Gender: Male
  • Posts: 101
    • View Profile
Re: Problem with scrolling by moving actor
« Reply #5 on: August 22, 2006, 10:44:37 AM »

I have made an example of a scene with error scroll.
How me it you to transfer?
Logged

Mnemonic

  • WME developer
  • Administrator
  • Addicted to WME forum
  • *
  • Karma: 41
  • Offline Offline
  • Gender: Male
  • Posts: 5674
    • View Profile
    • Dead:Code Site
Re: Problem with scrolling by moving actor
« Reply #6 on: August 22, 2006, 07:09:43 PM »

Best if you could uploadit somewhere and post a link. How big is it?
Logged
Yes, I do have a twitter account
Please don't send me technical questions in private messages, use the forum. ::wave

Lion

  • Regular poster
  • ***
  • Karma: 0
  • Offline Offline
  • Gender: Male
  • Posts: 101
    • View Profile
Re: Problem with scrolling by moving actor
« Reply #7 on: August 23, 2006, 04:39:40 PM »

Example of a scene with error scroll:

http://diduk.narod.ru/scroll_error.exe
Logged

Mnemonic

  • WME developer
  • Administrator
  • Addicted to WME forum
  • *
  • Karma: 41
  • Offline Offline
  • Gender: Male
  • Posts: 5674
    • View Profile
    • Dead:Code Site
Re: Problem with scrolling by moving actor
« Reply #8 on: August 23, 2006, 06:39:46 PM »

Now the question is why would you want to scroll by 8 pixels? If you set "Scene.ScrollPixelsX = 2;" you'll get much smoother scrolling.
What happens now is that the scene scrolls faster than the actor is walking, so it scrolls "too far", and gets immediately corrected back to actor's position, causing this nasty stuttering.
Logged
Yes, I do have a twitter account
Please don't send me technical questions in private messages, use the forum. ::wave

Lion

  • Regular poster
  • ***
  • Karma: 0
  • Offline Offline
  • Gender: Male
  • Posts: 101
    • View Profile
Re: Problem with scrolling by moving actor
« Reply #9 on: August 25, 2006, 11:06:32 AM »

"Clearly, that business dark..."

Then concrete questions:

What adjustments of the actor(sprite) should be
Delay = ?
Move by = ?
and scene
ScrollSpeedX = ?
ScrollPixelsX = ?

How to speed up scroll if he lags behind the actor?

That scroll worked normally (quickly, smoothly and without twitchings)

And more. That the actor correctly walk, instead of slided on a floor.
It is necessary, that each phase of animation of walking had the displacement(move by),
for example for all behaviour of walking from 8 phases (1,2,4,2,7,6,2,0)

What in this case will be with scroll?
He will lag behind that the actor to outstrip it. In result again the actor will twitch...
Logged

Mnemonic

  • WME developer
  • Administrator
  • Addicted to WME forum
  • *
  • Karma: 41
  • Offline Offline
  • Gender: Male
  • Posts: 5674
    • View Profile
    • Dead:Code Site
Re: Problem with scrolling by moving actor
« Reply #10 on: August 25, 2006, 01:37:55 PM »

I'm sure you noticed that the scrolling "catches-up", if it's slower than actor's walk (the "lagging", as you call it). That's intentional, and it's there exactly for this reason; to keep the scrolling smooth, and to eliminate the problem with different walking and scrolling speed. The other solution would be for the scene scroll offset to always exactly follow the actor's position, and it doesn't look good, believe me.
By setting ScrollPixelsX to higher values you reduce the "lagging", but if you increase it too much (so that the scene scrolls faster than the actor is walking), you get the stuttering. Try to find a good balance depending on the walking speed of your actor.
Logged
Yes, I do have a twitter account
Please don't send me technical questions in private messages, use the forum. ::wave

Lion

  • Regular poster
  • ***
  • Karma: 0
  • Offline Offline
  • Gender: Male
  • Posts: 101
    • View Profile
Re: Problem with scrolling by moving actor
« Reply #11 on: August 25, 2006, 04:34:11 PM »

Clearly. Thanks for a detailed clarification.
Logged
 

Page created in 0.211 seconds with 17 queries.