The Daily Click ::. Forums ::. Klik Coding Help ::. Quick question.
 

Post Reply  Post Oekaki 
 

Posted By Message

xXBlazefirelpXx



Registered
  14/06/2010
Points
  45
30th November, 2010 at 20:59:41 -

Okay, I'll make this a quickie. I need to test if a sensor is getting close to a backdrop. How do I achieve this?

 
-----------------------------------------------

Benny Lindberg



Registered
  08/11/2010
Points
  54
30th November, 2010 at 22:07:14 -

Hey Blazefire, maybe this is what you're looking for? http://www.create-games.com/article.asp?id=593

 
n/a

xXBlazefirelpXx



Registered
  14/06/2010
Points
  45
30th November, 2010 at 22:17:59 -

This is about 2 object. What I want is to make a sensor detect weather is is closer than lets say 10 pixels to a backdrop on it's Y axis.

 
-----------------------------------------------

Sketchy

Cornwall UK

Registered
  06/11/2004
Points
  1970

VIP MemberWeekly Picture Me This Round 43 Winner!Weekly Picture Me This Round 47 WinnerPicture Me This Round 49 Winner!
30th November, 2010 at 23:00:35 -

You can't - not without making the backdrop an active instead, or at least using an active to mark the position of the backdrop.

 
n/a

monkeytherat

Hero of Time Jr

Registered
  07/11/2010
Points
  1293

VIP MemberI donated an open source project
30th November, 2010 at 23:07:24 -

NOT TRUE all you have to do is make a new sensor that's as big as how far away you need it to be from the backdrop and say when the big sensor collides with/ is overlapping a backdrop do this.... if you don't understand that i will be more clear and post an example.

 
If you put a million monkeys at a million keyboards, one of them will eventually write a Java program.
The rest of them will write Perl programs.

xXBlazefirelpXx



Registered
  14/06/2010
Points
  45
30th November, 2010 at 23:48:34 -

i did think of this method but I wanted to try to go for a different method, one that could compare the amount of pixels an object is away from a backdrop. Oh well, Ill do it the other way. Thanks for your input guys .

 
-----------------------------------------------

Cecilectomy

noPE

Registered
  19/03/2005
Points
  305

Has Donated, Thank You!VIP MemberWeekly Picture Me This Winner!Cardboard BoxGhostbuster!Pokemon Ball!ComputerBox RedSanta HatSnowman
I am an April Fool
1st December, 2010 at 01:09:13 -

that would be a good thing to ask for in a future mmf2 release or mmf3. would be really helpful too.

"is active (Xpixels) close to backdrop"

 
n/a

Sketchy

Cornwall UK

Registered
  06/11/2004
Points
  1970

VIP MemberWeekly Picture Me This Round 43 Winner!Weekly Picture Me This Round 47 WinnerPicture Me This Round 49 Winner!
1st December, 2010 at 01:39:22 -


Originally Posted by monkeytherat
NOT TRUE all you have to do is make a new sensor that's as big as how far away you need it to be from the backdrop and say when the big sensor collides with/ is overlapping a backdrop do this.... if you don't understand that i will be more clear and post an example.



That's fine if you only want to check for ANY background object, but not a specific object (that's what I thought he meant).

 
n/a

xXBlazefirelpXx



Registered
  14/06/2010
Points
  45
1st December, 2010 at 17:32:59 -

I was meaning any backdrop what so ever.

 
-----------------------------------------------

HorrendousGames

Sourpuss

Registered
  31/10/2009
Points
  481

VIP MemberEvil klikerGame Of The Week Winner
1st December, 2010 at 18:05:27 -

couldn't you just use the collision mask? I.e. collision mask point X right of player + 10 = obstacle, then do such and such? Play around with it, in conditions it's under the frame icon.

 
/-=?=-/-=?=-/-=?=-/-=?=-/-=?=-/-=?=-/-=?=-/-=?=-/-=?=-/-=?=-/-=?=-/-=?=-/-=?=-/-=?=-/-=?=-/-=?=-/-=?=-/-=?=-/-=?=-/-=?=-/-=?=-/-=?=-/
That Really Hot Chick
now on the Xbox Live Marketplace!

http://marketplace.xbox.com/en-US/Product/That-Really-Hot-Chick/66acd000-77fe-1000-9115-d80258550942

http://www.create-games.com/project.asp?view=main&id=2160

Don Luciano

Heavy combat pancake

Registered
  25/10/2006
Points
  380

VIP Member
1st December, 2010 at 18:21:00 -

Image

Maybe this will be helpfull.

Edited by Don Luciano

 
Code me a sausage!

xXBlazefirelpXx



Registered
  14/06/2010
Points
  45
1st December, 2010 at 20:36:15 -

Where do I actually got to test the Y pixels of an object close to an backdrop?

 
-----------------------------------------------

GamesterXIII



Registered
  04/12/2008
Points
  1110

I am an April Fool
1st December, 2010 at 20:56:30 -


Originally Posted by xXBlazefirelpXx
Where do I actually got to test the Y pixels of an object close to an backdrop?



You DON'T.

Thats what people have been trying to tell you.

Just use a sensor/collision mask like everyone has been saying. If you need multiple distances (10 pixels, 15 pixels, etc.) you could get really, really creative with scaling.

 
n/a

xXBlazefirelpXx



Registered
  14/06/2010
Points
  45
1st December, 2010 at 22:46:39 -

Meh, thanks for your help anyway guys.

 
-----------------------------------------------

GamesterXIII



Registered
  04/12/2008
Points
  1110

I am an April Fool
1st December, 2010 at 23:16:25 -


Originally Posted by xXBlazefirelpXx
Meh, thanks for your help anyway guys.



Just curious - what are you going to do about this now?



 
n/a
   

Post Reply



 



Advertisement

Worth A Click