Please login or register.

Login with username, password and session length
Advanced search  

News:

This forum provides RSS feed. To query recent posts use this url. More...


Author Topic: Scrolling speed  (Read 3668 times)

0 Members and 1 Guest are viewing this topic.

Mac

  • Supporter
  • Regular poster
  • *
  • Karma: 0
  • Offline Offline
  • Gender: Male
  • Posts: 136
    • View Profile
    • Homepage
Scrolling speed
« on: April 04, 2005, 04:04:57 PM »

Thanks for the reply.

I just tested ScrollingSpeedX set to zero, but without any affects. I compiled this scene from our game, so you could see how it works here if you want:

http://mac-bs.de/temp/scrolling.zip (8mb)

Mac
Logged

Mnemonic

  • WME developer
  • Administrator
  • Addicted to WME forum
  • *
  • Karma: 41
  • Offline Offline
  • Gender: Male
  • Posts: 5683
    • View Profile
    • Dead:Code Site
Re: TODO list online
« Reply #1 on: April 04, 2005, 05:40:04 PM »

Thanks for the reply.

I just tested ScrollingSpeedX set to zero, but without any affects. I compiled this scene from our game, so you could see how it works here if you want:

http://mac-bs.de/temp/scrolling.zip (8mb)

Mac

I'm sorry, I'm sorry, I'm sorry. The documentation says the attributes are called ScrollingSpeed..., but actually they are called ScrollSpeed... Please try setting something like this in the scene_init script:

Scene.ScrollSpeedX = 5;

That should do the trick, hopefully.

*goes shoot himself* :-[
Logged
Yes, I do have a twitter account
Please don't send me technical questions in private messages, use the forum. ::wave

Mac

  • Supporter
  • Regular poster
  • *
  • Karma: 0
  • Offline Offline
  • Gender: Male
  • Posts: 136
    • View Profile
    • Homepage
Re: TODO list online
« Reply #2 on: April 04, 2005, 08:27:24 PM »

Hi,

hopefully the bullet missed you ...

I tried, but without success. It doesn't matter what number I give the Scene.ScrollSpeedX command, the speed is always the same.

Code: [Select]
#include "scripts\base.inc"

// here comes the stuff which initializes the scene

var EntZahnp=Scene.GetNode("Zahnsachen_Sprite");
var EntZahnpr=Scene.GetNode("Zahnsachen");

actor.SkipTo(2000, 680);
actor.Direction = DI_LEFT;
Scene.SkipTo(actor);
Scene.ScrollSpeedX=2;
actor.Active = true;

if(Game.IsItemTaken("Zahnbürste")==true) {
  EntZahnp.SetSprite("scenes\Apfelhaus\Zahnb_weg.sprite");
  EntZahnpr.Active=false;
}


////////////////////////////////////////////////////////////////////////////////
// scene state
global StateApfelhaus;


// default values
if(StateApfelhaus==null)
{
  StateApfelhaus.Visited = false;
  // add scene states here
}



////////////////////////////////////////////////////////////////////////////////
// setup scene according to state variables



////////////////////////////////////////////////////////////////////////////////
if(!StateApfelhaus.Visited)
{
  StateApfelhaus.Visited = true;

  // this is our first visit in this scene...
}

Thanks
Mac
 
Logged

Mnemonic

  • WME developer
  • Administrator
  • Addicted to WME forum
  • *
  • Karma: 41
  • Offline Offline
  • Gender: Male
  • Posts: 5683
    • View Profile
    • Dead:Code Site
Re: Scrolling speed
« Reply #3 on: April 04, 2005, 08:41:35 PM »

Aaarhg. Not my day, deifnitely. Anyway, I tried Scene.ScrollPixelsX=3; in your scene and it seems to work reasonably. Of course, it depends on what type of scolling are you aiming for, ideally.
« Last Edit: April 04, 2005, 08:43:33 PM by Mnemonic »
Logged
Yes, I do have a twitter account
Please don't send me technical questions in private messages, use the forum. ::wave

Mac

  • Supporter
  • Regular poster
  • *
  • Karma: 0
  • Offline Offline
  • Gender: Male
  • Posts: 136
    • View Profile
    • Homepage
Re: Scrolling speed
« Reply #4 on: April 04, 2005, 09:16:57 PM »

Ha !!!

You're right, now it works like a charm !
I forgot the 'ScrollPixelsX' in my last tests.

You made me a lucky man ... once again.

Thanks a lot
Mac
Logged
 

Page created in 0.052 seconds with 24 queries.