How do I change views based on an objects position?

D

Daxrcy

Guest
I've been trying to change views based on where my character is. I have views 0,1, and 2 set up in the room views tab. View 0 is at the bottom, so it ends at y value 960 at the top.
I've tried this in both step and create events of a view_cntrl object in the room:

if place_meeting(x,y<960,fem_character) {
view_visible[0] = false
view_visible[1] = true
}

I've tried many variations of this but none of them seem to work.
 
D

Daxrcy

Guest
Thank you! I'm a little new to gamemaker and it seems I was just making it harder on myself. It works :)
 
Top