The Daily Click ::. Forums ::. Klik Coding Help ::. Detection issues
 

Post Reply  Post Oekaki 
 

Posted By Message

Chloe Sagal

under the influence of FUN

Registered
  19/02/2009
Points
  607

Orange
22nd October, 2009 at 03:13:09 -

i hope i'm just doing something stupid. my code goes as such.

when moving object is
X >= X of left edge of target
X <= X of Right edge of target
Y <= Y - (half of moving objects height) of bottom edge
Y >= Y - (half of moving objects height) of top edge

Change variable

The variable doesn't change, ive tried doing this while removing the half of moving objects height variable. it works if I replace all of the area conditions with moving object is overlapping target object (but of cource that causes other problems)

 
Patreon: http://www.patreon.com/chloesagal
Twitter: https://twitter.com/ChloeSagal

OMC

What a goofball

Registered
  21/05/2007
Points
  3516

KlikCast Musician! Guy with a HatSomewhat CrazyARGH SignLikes TDCHas Donated, Thank You!Retired Admin
22nd October, 2009 at 03:24:03 -

And these are all in separate conditions, right?

 

  		
  		

Jon Lambert

Administrator
Vaporware Master

Registered
  19/12/2004
Points
  8235

VIP MemberWii OwnerTDC Chat Super UserI am an April FoolSSBB 3265-4741-0937ACCF 3051-1173-8012360 Owner
22nd October, 2009 at 03:42:05 -

I don't know. It looks to me that the way it is set up, the event is impossible because you subtract for both Y conditions as opposed to adding for the top edge one. That would require the Y position to be two different numbers at the same time. If you really did us plus and it isn't working, it likely does and you simply haven't ever been able to move the object to that exact position (because it only references one single point).

Again, I don't know.

 
Sandwich Time!Whoo!

JoyCheck & KeyCheck Widgets
For easy implementation of customizable joystick and keyboard controls.
http://www.create-games.com/download.asp?id=8364

Chloe Sagal

under the influence of FUN

Registered
  19/02/2009
Points
  607

Orange
22nd October, 2009 at 05:09:52 -

@omc - yup

@lambert - the funny thing is this works for everything else. usually for my targetting, rather chancing the X=x bull (which always ends up with some aukward bobbing and weaving) I set up a range of coordinates like this and it works fine. and its a pretty big area that this falls into.

I do have to mention aswell, there are various of these objects, and adding Pick one of event doesn't help it either. i have them all set into a qualifier, and i tried this setting the conditions using the qualifier and one using the specific object.

EDIT: Just as i suspected, it works only for the first one created, just like every other object selection issue. is there any way to identify a specific object (using the fixed number) without actually touching the object?

Edited by Chloe Sagal

 
Patreon: http://www.patreon.com/chloesagal
Twitter: https://twitter.com/ChloeSagal

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!
22nd October, 2009 at 13:53:49 -

I don't get it.
What's the event actually supposed to do?

 
n/a

Chloe Sagal

under the influence of FUN

Registered
  19/02/2009
Points
  607

Orange
22nd October, 2009 at 18:02:26 -

if upDown = -1 character moves down
if upDown = 1 character moves up

if character is on stairs (the event conditions listed above)
follow object is above/below player set upDown to 1/-1
character is between follow object top and bottom set upDown to 0

i have temporarily switched the events to
player overlaps stair A and Y pos of follow object is different
set pmo Y max velocity of player to 0 and set y pos of player to follow object

repeat for other stair objects

if player is not overlapping any stair objects
set pmo max y velocity to 800

it works, but i think theres a jump for when he goes up the stairs, which i can live with for now.

 
Patreon: http://www.patreon.com/chloesagal
Twitter: https://twitter.com/ChloeSagal
   

Post Reply



 



Advertisement

Worth A Click