# Accelerating objects using the "set\_speed" message

**URL:** <https://forum.defold.com/t/accelerating-objects-using-the-set-speed-message/68962>\
**Category:** Questions\
**Created:** [July 27, 2021, 8:29pm UTC](https://forum.defold.com/t/accelerating-objects-using-the-set-speed-message/68962 "2021-07-27T20:29:35Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![Alex\_8BitSkull](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/alex_8bitskull/32/5424_2.png) [@Alex\_8BitSkull](https://forum.defold.com/u/Alex_8BitSkull)\
**Post date:** [July 28, 2021, 8:29am UTC](https://forum.defold.com/t/accelerating-objects-using-the-set-speed-message/68962/3 "2021-07-28T08:29:33Z")

</div>

It doesn’t cause an error, but it does seem to clamp values 0-1.

Edit: Sorry, I remembered wrong. It doesn’t do that. It swallows other parameters specified in the table and gives speed = 1 if speed isn’t specified. It does however not give any errors or warnings.

> [@Monarch - Simple screen manager](https://forum.defold.com/t/monarch-simple-screen-manager/14138/42):
>
> I put this in a project that doesn’t have Monarch and got the same results as you: msg.post(".", "set\_speed", {kmh = 250}) DEBUG:SCRIPT: hash: [set\_speed] DEBUG:SCRIPT: { --[[0000015544431E90]] speed = 1 } Reserved messages are discussed in [this thread](https://forum.defold.com/t/reserved-words/53940), but “set\_speed” is not mentioned. Looks like the sound speed parameter was added in [1.2.162](https://forum.defold.com/t/defold-1-2-162-has-been-released/62959), which is after the thread on reserved words happened and might explain the absence from the list. If indeed my theory is correct.

---

_[View the full topic](https://forum.defold.com/t/accelerating-objects-using-the-set-speed-message/68962)._
