The Dink Network

Yet another DinkC bug

November 24th 2013, 11:59 PM
peasantm.gif
shevek
Peasant They/Them Netherlands
Never be afraid to ask, but don't demand an answer 
When walking into (non-low) hardness, after a while Dink will start pushing. When that happens, an object's push method may be activated. Nothing strange so far. However: any object that is touching Dink at that moment will have its push function called. Read that again. Yes, that means that if you have a rock which blocks off a doorway, walking up to the rock and then pushing the wall will call the rock's push function, possibly moving it to the side (if it responds to Dink's current direction).

This totally messes up my puzzle. It isn't too hard to fix; I just have to check if Dink is in the right place compared to the object. But it's important to know that I have to check this, because I thought the push function wouldn't be called if he wasn't.
November 25th 2013, 08:05 AM
goblins.gif
I can confirm this. I believe the updated version of Cast Awakening Part 1: Initiation also uses the method you mention to deal with the problem. Also, Dink can push multiple objects at the same time if he's close enough to multiple pushable objects, which I suspect can cause some funky stuff to happen if the push scripts are complex.
November 25th 2013, 11:28 AM
wizardb.gif
Kyle
Peasant He/Him Belgium
 
Oh wow... Weird bug, but you know what? This could actually be used to pull off some other interesting stuff. In your case you'd need extra checks in place though, yeah.
November 25th 2013, 11:31 AM
custom_coco.gif
Cocomonkey
Bard He/Him United States
Please Cindy, say the whole name each time. 
Oh man, this reminds me of another annoying bug. anything that gets hit when Dink is touching it has its hit procedure called as well, even if it's not Dink that's hitting it.
November 25th 2013, 02:56 PM
custom_skull.gif
Skull
Peasant He/Him Finland bloop
A Disembodied Sod 
Oh man, this reminds me of another annoying bug. anything that gets hit when Dink is touching it has its hit procedure called as well, even if it's not Dink that's hitting it.

Isn't this the case even when Dink's not touching whatever's being hit?
November 25th 2013, 03:50 PM
custom_coco.gif
Cocomonkey
Bard He/Him United States
Please Cindy, say the whole name each time. 
I haven't had it happen unless Dink is pretty close to it. I guess I could be mistaken, though.

Edit: Actually, that isn't even a bug. Boy, I am dumb. Never mind. (Time to go put "if (&enemy_sprite == 1)" into lots of scripts...)