Not logged inOpenClonk Forum
Up Topic Mountain climbing scenario help

This board is threaded (i.e. has a tree structure). Please use the Reply button of the specific post you are referring to, not just any random button. If you want to reply to the topic in general, use the Post button near the top and bottom of the page.

Post Reply
In Response to Zapper

>I've got the code working so that the hook wont attach to digable terrain but amusingly the bit i've got stuck on is making it work as an #appendto file. What have i done wrong?
>#appendto Hook


The ID of the grappler's hook is "GrappleHook" :)

PS: And you might want to divide the speed (x and y) by 10, since the parameters of Hit() have a higher precision than the usual 10pixel/frame. (So if you would use SetYDir(-y) instead of SetYDir(-y/10) in Hit(x, y) the hook would not only bounce back but it would accelerate! )

Powered by mwForum 2.29.7 © 1999-2015 Markus Wichitill