Jump to content
Sign in to follow this  
Lillapojkenpåön

8.8 type movement with one variable

Recommended Posts

Variable saving if alot of things use the same speed, I was using 16 variables for the x & y for 8 players before I came up with this

 

If you just want to slow down the players you don't need to use the a and b variables,

 

just replace .._fraction_counter + b with .._fraction_counter + (number between 1 and 255)

 

and .._speed = a + 1 else _speed = a with .._speed = 1 else _speed = 0

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...