The Daily Click ::. Forums ::. Klik Coding Help ::. trouble with qualifiers
 

Post Reply  Post Oekaki 
 

Posted By Message

columbo borgi :C



Registered
  07/12/2003
Points
  296

VIP Member
27th October, 2010 at 14:17:55 -

YO

I post a pic from my code:
Image

Check the 7th line. I want to do a trigger about "X qualifier overlaps X qualifier", so 2 object overlaps from the same qualifier.
I did add an other qualifier to all these objects, and make one's AltvalA to 1, and the other to 0. This is in the 3rd line.
Neither works.

How can I do this?
Thanks for your reply



Edited by columbo borgi :C

 
:C

Mikeware



Registered
  19/02/2010
Points
  29
27th October, 2010 at 15:11:29 -

2nd and 6th lines seems to do the same thing no?
from what I understood u want to do a condicion about qualifier X overlaping another X qualifier, why don't u use overlaps condicion then? u seems to using the 'collision between'.

 
n/a

Sketchy

Cornwall UK

Registered
  06/11/2004
Points
  1971

VIP MemberWeekly Picture Me This Round 43 Winner!Weekly Picture Me This Round 47 WinnerPicture Me This Round 49 Winner!
27th October, 2010 at 15:14:51 -

I don't understand.
Are you trying to test for a collision between two specific instances of the same qualifier, or just any two objects?
What are the actions you're trying to trigger?


 
n/a

columbo borgi :C



Registered
  07/12/2003
Points
  296

VIP Member
27th October, 2010 at 18:02:29 -

There are several different object in the same group, and I want to check if they overlapping.

And there are lot of them, 16, and I dont want to heck every piece of them.

Edited by columbo borgi :C

 
:C

GamesterXIII



Registered
  04/12/2008
Points
  1110

I am an April Fool
27th October, 2010 at 19:54:23 -

Hmm.

Would a behavior work? That way you can just copy the behavior to all objects.

Behavior # 1

Object collides with or Overlaps Qualifier
> events



 
n/a

Sketchy

Cornwall UK

Registered
  06/11/2004
Points
  1971

VIP MemberWeekly Picture Me This Round 43 Winner!Weekly Picture Me This Round 47 WinnerPicture Me This Round 49 Winner!
27th October, 2010 at 20:20:15 -

You should be able to just say: if qualifier overlaps qualifier.
If that doesn't work, then it's because of something else you're doing.
How about you show us the actual code - actions included?

 
n/a

columbo borgi :C



Registered
  07/12/2003
Points
  296

VIP Member
27th October, 2010 at 22:49:37 -

http://www.freefilehosting.net/bo

here's the mfa.
I hope you will understand how I think it will work.
It's gonna be that kind of board game, where is a hole, and you have to "solve a picture".

The vertical movements are implemented in my mfa yet.

 
:C

Sketchy

Cornwall UK

Registered
  06/11/2004
Points
  1971

VIP MemberWeekly Picture Me This Round 43 Winner!Weekly Picture Me This Round 47 WinnerPicture Me This Round 49 Winner!
27th October, 2010 at 23:34:50 -

Personally, I'd probably do it differently.

I'd either use detectors, as demonstrated here:
http://cid-b1e7ee094271bbda.office.live.com/self.aspx/Public/bo%20EDIT.mfa

and here (with tiles that slide instead of moving instantly)
http://cid-b1e7ee094271bbda.office.live.com/self.aspx/Public/bo%20EDIT2.mfa

...or I'd store everything in an array, and then just look up the values from that array, instead of actually doing any collision check.

Edited by Sketchy

 
n/a

columbo borgi :C



Registered
  07/12/2003
Points
  296

VIP Member
28th October, 2010 at 14:27:19 -

thank you very much!
i did not want to use external extensions, so i didnt want to use that array extension.

 
:C
   

Post Reply



 



Advertisement

Worth A Click