Discussions

SmileBASIC Community

MSWScoolestkid123

05/13/2016 3:03 AM ·Spoilers

Open Closed

Tracking AI

Is there a better tracking code?

Advertisement

Comment

This post has no comments.

  • You should try to search A* on Google. That's a good algorithm to get the path between 2 point. I don't know what kind of game are you doing but it work for both rts and platform games.

    Yeahs1
    Played
  • Thanks, but it's too complicated for BASIC.

    Yeahs0
    Played
  • Instead of 190 to 194,we can write below: DRGX=DRGX+((DRGX<MANX)-(DRGX>MANX))*DPSD DRGY=DRGY+((DRGY<MANY)-(DRGY>MANY))*DPSD

    Yeahs0
  • Minimax, maybe? depending on you search tree it might be quite resource-intensive but it works good with low-branching, big-depth trees. You might also use αβ-pruning to improve the seach.

    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-BXM-ZM9D-GNV-ZWE8

Report Violation to Miiverse Administrators

You cannot report posts made automatically by a software title.

Edit Post

Select an action: