# Some help with a piece of coding

**URL:** <https://forum.kirupa.com/t/some-help-with-a-piece-of-coding/74018>\
**Category:** Uncategorized\
**Created:** [December 22, 2004, 7:39pm UTC](https://forum.kirupa.com/t/some-help-with-a-piece-of-coding/74018 "2004-12-22T19:39:19Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Bless](https://avatars.discourse-cdn.com/v4/letter/b/34f0e0/32.png) [@Bless](https://forum.kirupa.com/u/Bless)\
**Post date:** [December 22, 2004, 7:39pm UTC](https://forum.kirupa.com/t/some-help-with-a-piece-of-coding/74018/1 "2004-12-22T19:39:19Z")

</div>

Hello. I need some help with a piece of coding. On the click of a button, pics change position. However, I want the pics to change position on their own, without the use of any buttons. To give you a basic idea here is the code:

Button 1

on(press){  
first\_yPos = 0;  
}

Button 2

on(press){  
first\_yPos = -250;  
}

I’m quite sure there is a way for the pics to move with a/s, I just don’t know how. Please help!! Thank you
