Jump to content


v0xc

Member Since 15 Nov 2010
Offline Last Active Jun 27 2011 12:04 PM

Posts I've Made

In Topic: How do I make something happen when an object is

17 March 2011 - 06:05 PM

You can just do this then:

action=(x>=view_xview && y>=view_yview && x<view_xview+view_wview && y<view_yview+view_hview)
And is it in a repetitive event, such as a step or draw?

Step.
EDIT: Thanks! Tried it out and worked! +1 for you

In Topic: How do I make something happen when an object is

17 March 2011 - 05:39 PM

Hi, I used it like this:
if inside_view=(x>=view_xview && y>=view_yview && x<view_xview+view_wview && y<view_yview+view_hview) {
action = 1
}
else
{
action = 0
}

But it didn't seem to work, action is the value I'm wanting to change if the object is in my view(View 0). Sorry if I'm sorta stupid.

In Topic: How do I make something happen when an object is

17 March 2011 - 01:06 PM

Step event:

inside_view=(x>=view_xview && y>=view_yview && x<view_xview+view_wview && y<view_yview+view_hview)

How can I use that to change a value? Please explain. :)

In Topic: How do I make something happen when an object is

17 March 2011 - 12:53 PM

The thing I want to happen is a variable change in the object. A certain type of object.

In Topic: How do I draw value with a caption beside it?

17 March 2011 - 11:33 AM

If your using a view, use view_xview[0...7] for x and view_yview[0...7] for y. If its a single room on your screen... just put the coordinates for x and y.

Thanks!