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: How do you Stop an object from Scrolling?  (Read 2639 times)

0 Members and 1 Guest are viewing this topic.

diegoquarantine

  • Occasional poster
  • **
  • Karma: 0
  • Offline Offline
  • Gender: Male
  • Posts: 50
    • View Profile
    • Buenos Aires Quarantine Studio
How do you Stop an object from Scrolling?
« 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.

diegoquarantine

  • Occasional poster
  • **
  • Karma: 0
  • Offline Offline
  • Gender: Male
  • Posts: 50
    • View Profile
    • Buenos Aires Quarantine Studio
Re: How do you Stop an object from Scrolling?
« Reply #1 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.

lof

  • Lurker
  • *
  • Karma: 4
  • Offline Offline
  • Posts: 19
  • A Leap Of Fate
    • View Profile
Re: How do you Stop an object from Scrolling?
« Reply #2 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.
Logged

diegoquarantine

  • Occasional poster
  • **
  • Karma: 0
  • Offline Offline
  • Gender: Male
  • Posts: 50
    • View Profile
    • Buenos Aires Quarantine Studio
Re: How do you Stop an object from Scrolling?
« Reply #3 on: December 30, 2012, 03:36:14 PM »

Yeah, that worked thanks!!
 

Page created in 0.028 seconds with 19 queries.