# Spring in Platformer

**URL:** <https://forum.kirupa.com/t/spring-in-platformer/322507>\
**Category:** flash\
**Created:** [May 23, 2011, 9:37pm UTC](https://forum.kirupa.com/t/spring-in-platformer/322507 "2011-05-23T21:37:42Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ajv453](https://avatars.discourse-cdn.com/v4/letter/a/a183cd/32.png) [@ajv453](https://forum.kirupa.com/u/ajv453)\
**Post date:** [May 23, 2011, 9:37pm UTC](https://forum.kirupa.com/t/spring-in-platformer/322507/1 "2011-05-23T21:37:42Z")

</div>

Hi guys, I’m making a platformer, and I’m trying to make a spring to launch the character upwards, and im using this script:

```auto
_root.player._y -=300

```

The code works, but it just teleports the character 300 pixels upwards, but I need a fluid motion. Any way to resolve this? Thanks in advance.
