# Back to Defold after 2 years, "Bouncy Catapult" hypercasual prototype

**URL:** <https://forum.defold.com/t/back-to-defold-after-2-years-bouncy-catapult-hypercasual-prototype/40401>\
**Category:** Dev diaries\
**Created:** [January 14, 2019, 12:27am UTC](https://forum.defold.com/t/back-to-defold-after-2-years-bouncy-catapult-hypercasual-prototype/40401 "2019-01-14T00:27:25Z")\
**Posts on this page:** 1\
**Showing post:** 16

<div class="post-metadata">

**Author:** ![britzl](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/britzl/32/23_2.png) [@britzl](https://forum.defold.com/u/britzl)\
**Post date:** [January 18, 2019, 5:33am UTC](https://forum.defold.com/t/back-to-defold-after-2-years-bouncy-catapult-hypercasual-prototype/40401/16 "2019-01-18T05:33:22Z")

</div>

> [@marat.giliazov](#):
>
> Currently bar receives a collision message on itself and sends a message with hotpoint to the child object, where I have such not-verry-pretty code:
> 
> ```lua
> msg.post(".", "set_parent", {keep_world_transform = 0})
> go.set_position(global_hit_position)
> msg.post(".", "set_parent", {parent_id = bar_path, keep_world_transform = 1})
> 
> ```

Yes, not so pretty code, but you could move those three lines to a utility function. It is not optimal from a performance standpoint of course to make three calls into the engine to do this, but this kind of thing is likely not done that often.

---

_[View the full topic](https://forum.defold.com/t/back-to-defold-after-2-years-bouncy-catapult-hypercasual-prototype/40401)._
