Wintermute Engine Forum

Wintermute Engine => Technical forum => Topic started by: diegoquarantine on December 29, 2012, 04:21:09 AM

Title: How do you Stop an object from Scrolling?
Post by: diegoquarantine on December 29, 2012, 04:21:09 AM

Hi, I wanted to know if there is a special command to stop a particular object from scrolling, when the rest of the scene does. I made a "vignette" window effect for a moment in particular of my game and this object shouldn´t scroll with the rest of the scene. I can´t find a way to do this.
I tried.

Code: [Select]
Noise2.ScrollSpeedX = 0;
Noise2.ScrollToAsync (11, 15);

but nothing.
Title: Re: How do you Stop an object from Scrolling?
Post by: diegoquarantine on December 29, 2012, 04:31:49 AM
I also tried to put the effect on another layer but when I do that its like the mouse cursor wont detect any region of the main layer.
Title: Re: How do you Stop an object from Scrolling?
Post by: lof on December 29, 2012, 08:42:13 AM
if it's just a noise effect layer and the player doesn't need to click it, just put noise2.Interactive=false;
this will make the entity transparent to mouse clicks and wont cover over your main layer.
Title: Re: How do you Stop an object from Scrolling?
Post by: diegoquarantine on December 30, 2012, 03:36:14 PM
Yeah, that worked thanks!!