Discussions

SmileBASIC Community

BradGamerZim

06/26/2016 12:08 AM ·Spoilers

Open Closed

Drift Effect

Ok, so Thanks to C.Norris and Zee my first game is going good but a minor snag "drift effect" tried a few codes for a effect of speeding up and slowing down but didn't work. Any ideas for a good drift engine my was a fail.

Advertisement

Comment

This post has no comments.

  • an idea of wht i tried was as long @spddf if button(1) then spd was spd+1 if spd>=5 then spd=5 if button(0) then spd=spd-1 if spd<=0 then spd=0 return tag on was x=x+spd

    Yeahs0
    Played
  • So when ever you press a button, something speeds up? But it doesn't have acceleration? I'm have trouble grasping the problem

    Yeahs0
    Played
  • what i am looking for is a way to simulate drag force, someting gradually speeds up or slows in inervals over time, when i ran my code i got a fast speed up but no drift in the sped up direction, and exsample would be, a boat in the water doesn't just stop, it drifts to a slow and the direction of force causes the boat maintain its course. my code does not

    Yeahs0
    Played
  • Try decreasing the speed depending on how much speed is left so speed=speed-speed/(some number) the number you divide by might differ, depending on the material you drive on.

    Yeahs0
    Played
  • alright thanks, been messing with a sprite on a balnk screen just running diffrent codes seeing what i can do, thinking i may need learn how to ether do a data or dimension array to jog a speed table.

    Yeahs0
    Played

Add a Comment

You must sign in to post a comment.

Sign in using a Nintendo Network ID to connect to users around the world by writing posts and comments and by giving Yeahs to other people's posts. You can create a Nintendo Network ID using your Wii U console or your system in the Nintendo 3DS family.

Use of Miiverse Details about Miiverse

Report Violation to Miiverse Administrators

You are about to report a post with content which violates the Miiverse Code of Conduct. This report will be sent to Nintendo's Miiverse administrators and not to the creator of the post.

Violation Type:

Post ID: 3DB-NBL7-BXN-3HKR-G2G-CXMA

Report Violation to Miiverse Administrators

You cannot report posts made automatically by a software title.

Edit Post

Select an action: