Difference between revisions of "Longbow arrow stops in mid-air"

From Worms Knowledge Base

Jump to: navigation, search
m (Linking to Longbow)
(added forum link)
Line 10: Line 10:
  
 
[[Image:Longbow glitch.png]]
 
[[Image:Longbow glitch.png]]
 +
 +
=== External links ===
 +
 +
* [http://forum.team17.com/showthread.php?t=35008 a most curious arrow] (Team17 Forum)

Revision as of 03:00, 29 April 2008

Very very rarely, the Longbow will stop in mid-air after it has travelled through a thin piece of land. The reason for this is explained by Deadcode below.

"The longbow has very weird mechanics. Its collision mask is a single pixel, but every frame it checks against the arrow mask. So, it can either collide due to its arrow mask, or the pixels in between the gaps.

If it's the pixel mask that collides, the arrow doesn't instantly stop. It waits until the next frame to stop and embed itself. However, if it's the arrow mask that collides, then it instantly stops because it's already at a frame boundary.

I probably could have explained that better, but this picture should help. Notice that occasionally, the green pixels poke out from behind the longbow arrow mask. That is where this weird kind of collision can happen:"

Longbow glitch.png

External links

Personal tools