Sign in to follow this  
Hugos

help (animate)

Recommended Posts

my functions:

dxDrawRectangle(x/3, y-100, 10, 50, tocolor(255, 50, 65), true)
dxDrawRectangle(0, y-100, x/3, 50, tocolor(0, 0, 0, 230), true)

I need to animate these DX that they "moved forward" on the left side for 30 seconds and "moved" back. How to make it?

Share this post


Link to post
5 hours ago, Hugos said:

I can not figure out this function. Help, please.

Wich part exactly ?

Share this post


Link to post
4 hours ago, coNolel said:

Wich part exactly ?

InterpolateBetween. As it is correct to make function with animation as it is correct to animate this rectangle. Would like to see at least an example.

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.