Hello Guest, please login or register.
Did you miss your activation email?
Login with username, password and session length.

Pages: [1]   Go Down

Author Topic: Messed up collision!  (Read 748 times)

0 Members and 1 Guest are viewing this topic.
Messed up collision!
« on: February 21, 2007, 05:12:17 pm »
  • Lionfish App dev
  • *
  • Reputation: +1/-0
  • Offline Offline
  • Gender: Male
  • Posts: 3456
I'm using this code on water objects:
Code: [Select]
if place_meeting(x,y,obj_Link){
    if (!colliding) {
        global.wading=true;
    }
    colliding=true;
} else {
    if (colliding) {
        global.wading=false;
    }
    colliding=false;
}
to check when Link is wading through shallow water. The only problem is that as he walks across a horizontal stretch of water objects, global.wading will flicker between true and false, causing the ripple and sound effect to turn on and off sporadically. This doesn't happen when walking vertically. Any thoughts?
Logged
  • Lionfish Apps

Goodnight

Once and future Captain
Re: Messed up collision!
« Reply #1 on: February 21, 2007, 05:59:36 pm »
  • With a Capital G
  • *
  • Reputation: +1/-0
  • Offline Offline
  • Gender: Male
  • Posts: 706
Try moving it in Link's step event, and check for collisions with the water object.

Because if you have multiple water objects all checking for collisions with Link, some will be touching him and some wont.
Logged
Re: Messed up collision!
« Reply #2 on: February 21, 2007, 08:18:10 pm »
  • Lionfish App dev
  • *
  • Reputation: +1/-0
  • Offline Offline
  • Gender: Male
  • Posts: 3456
That took care of it. Thanks Goodnight!
Logged
  • Lionfish Apps

Goodnight

Once and future Captain
Re: Messed up collision!
« Reply #3 on: February 21, 2007, 10:19:51 pm »
  • With a Capital G
  • *
  • Reputation: +1/-0
  • Offline Offline
  • Gender: Male
  • Posts: 706
Noproblo!
Logged
Pages: [1]   Go Up

 


Contact Us | Legal | Advertise Here
2013 © ZFGC, All Rights Reserved



Page created in 0.177 seconds with 42 queries.