Please login or register.

Login with username, password and session length
Advanced search  

News:

Latest WME version: WME 1.9.1 (January 1st, 2010) - download

Pages: [1] 2 3 ... 10
 1 
 on: Today at 12:37:59 AM 
Started by Eric Matyas - Last post by Eric Matyas
Hey guys,

I've added about 60 new images to the following pages:

TXR - CONCRETE / PAVEMENT
http://soundimage.org/txr-concrete/

TXR - GLASS (new page)
http://soundimage.org/txr-glass/

TXR - WOOD
http://soundimage.org/txr-wood/

I hope some of them are helpful!

 2 
 on: Yesterday at 10:39:39 PM 
Started by Indra Anagram - Last post by anarchist
Scene.ScrollSpeedX is an attribute, not a method. You get the error because you try to use it as a method:

Code: WME Script
  1. Scene.ScrollSpeedX(20); //This is wrong
  2.  

also, you have to set its value to an integer, so this is also wrong:

Code: WME Script
  1. Scene.ScrollSpeedX = true; //You assign a boolean value instead of an integer.
  2.  

a correct use would be:

Code: WME Script
  1. Scene.ScrollSpeedX = 20; //Default is 10, so this will make the scene scroll faster.
  2.  

 3 
 on: Yesterday at 02:28:25 PM 
Started by Indra Anagram - Last post by Indra Anagram
Hey anarchist!

You can play with these to get what you want.

I've played with ScrollSpeedX and managed to change the speed of scrolling, however an error appeared in Debugging console and wme.log:

Quote
19:10: Runtime error. Script 'scenes\Room\scr\scene_init.script', line 73
19:10:   Call to undefined method 'ScrollSpeedX'. Ignored.

The code looks this way:

Code: WME Script
  1. 70. Game.MainObject = null;
  2. 71. Scene.AutoScroll = true; //The scene can scroll automatically.
  3. 72. Scene.ScrollSpeedX = true; //The scene can scroll horizontally.
  4. 73. Scene.ScrollSpeedX(20); //Set scrolling speed to 20 ms.
  5. 74. Scene.ScrollTo(husband); //Scroll the scene to husband.

What does "undefined method" mean? Isn't Scene.ScrollSpeedX a default method in the engine? The scene works just like I wanted, except for this error message  :(

What goes around comes around. This forum helped me a lot in my game, so I am simply returning the kindness I received. Kindness breeds kindness, I am sure you will do the same some day.

You are right, anarchist. I just hope that some day I'll be experienced enough to help someone on this forum just like you do.

THANK YOU!

 4 
 on: November 18, 2017, 10:43:01 PM 
Started by Indra Anagram - Last post by anarchist
I don't have any special talents, I simply have been working as a professional programmer for years (and on Wintermute for some years too), which among other things gives you the ability to find solution to your problems through searching (either the documentation or the Internet in general). As you said, it is a matter of experience.  8)

Scroll speed is an attribute of the Scene object. From the documentation http://docs.dead-code.org/wme/generated/scripting_ref_scene.html:

Quote
ScrollSpeedX: Horizontal scrolling speed (in milliseconds, default=10)
ScrollSpeedY: Vertical scrolling speed (in milliseconds, default=10)
ScrollPixelsX: Horizontal scrolling shift (in pixels, default=1)
ScrollPixelsY: Vertical scrolling shift (in pixels, default=1)
OffsetX: Current horizontal scrolling offset of the scene
OffsetY: Current vertical scrolling offset of the scene

You can play with these to get what you want.

What goes around comes around. This forum helped me a lot in my game, so I am simply returning the kindness I received. Kindness breeds kindness, I am sure you will do the same some day.

 5 
 on: November 18, 2017, 07:12:08 PM 
Started by Indra Anagram - Last post by Indra Anagram
As I said above, I am working blindly, but from what I read in the documentation, the behaviour you observe does make sense, so I think this will work.

Yes, anarchist, the code that you came up with works perfectly!  ::rock
The whole scene now scrolls to "husband" actor smoothly. Do you happen to know if it is possible to speed up scrolling speed? Or it is not a changeable feature?

You were helping me *blindly*, without any use of scrolling in your project, wow! I am so impressed and sooo grateful to you!

THANK YOU, anarchist! You and NAItReIN are my heroes. Without you, guys, I don't know how I'd even crack all this scripting. Guess this is the pure question of experience.

 6 
 on: November 18, 2017, 03:42:01 PM 
Started by Indra Anagram - Last post by anarchist
I haven't used scrolling in my scenes so I will try to help you a bit blindly.

From the documentation I can see that:

Quote
Scene.Autoscroll: Specifies whether scene automatically scrolls to the Game.MainObject

By default, in game.script you will find the following line:

Code: WME Script
  1. Game.MainObject = actor;
  2.  

So it makes sense that, when you set Game.Autoscroll = true the scene scrolls toward the main actor. Also from the documentation:

Quote
MainObject: The object which is used for the scene's auto scrolling, can be (set to) null

So it can be set to null. Perhaps this would work?

Code: WME Script
  1. Scene.ScrollTo(husband);
  2.  

After you have done the scrolling and dialogue etc. I think you will want to:

Code: WME Script
  1. Scene.AutoScroll = false;
  2. Game.MainObject = actor;
  3.  

As I said above, I am working blindly, but from what I read in the documentation, the behaviour you observe does make sense, so I think this will work.

 7 
 on: November 17, 2017, 09:56:34 PM 
Started by Indra Anagram - Last post by Indra Anagram
NAItReIN, if not for you and anarchist, I wouldn't get through this at all!  ::thumbup

So cool to see ideas becoming something real with WME!

 8 
 on: November 17, 2017, 09:50:22 PM 
Started by Indra Anagram - Last post by NAItReIN
How nice to see that I could help you  :)

 9 
 on: November 17, 2017, 09:48:30 PM 
Started by Indra Anagram - Last post by Indra Anagram
NAItReIN, it looks like it really does!  :D

You rock!

 10 
 on: November 17, 2017, 09:42:11 PM 
Started by Indra Anagram - Last post by NAItReIN
So now it works like your want?

Pages: [1] 2 3 ... 10

Page created in 0.34 seconds with 14 queries.