This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#1 2012-05-18 21:40:47

Zparx
Scratcher
Registered: 2011-03-23
Posts: 500+

> \ [|||] Revolutionary AI Movement! [|||] / <

Click here to check it out! READ THE NOTES SECTION OR BELOW FIRST PLEASE!

I tried to create a simplistic way to make multiple ai objects move in my game without ruining it because of lag or glitches. I like what I've come up with. It may seem cheesy/generic/cliche, but what I've actually done is put all of the movements for the ai in lists, and when it needs to move, it selects how far and how much from said lists based on what level it's on. The best part about spamming this ai figure is that I made the variables seperately belong to each individual sprite, and not to ALL sprites, meaning no glitches if you want an ai to appear and travel later than another because it sets its own variables to the necessary values in the list and works from those. You should really download this and check out the scripts! I think they'll amaze you! I think these simple, yet powerful scripts can be essentially helpful when making defense games, because you can have lots of these ai objects in your game without consequences because the scripts are so short and therefore effective against lagging. Tell me what you think!

NOTES:

**I'm not finished with this yet, so there will be guaranteed flaws if you duplicate the ai's and try clicking the green flag. When I'm finished, that won't be the case.

**Unfortunately, if you want to duplicate the sprites for your own use, you'll have to program it yourself, because when I'm "finished" with this, it will be a full fledged defense game. Sort of like the "balloon pop" game (:

Enjoy! Don't forget to LOVE IT!


http://images3.wikia.nocookie.net/__cb20101119183412/halo/images/4/43/Hero2.png
^ My rank on Halo: Reach :3

Offline

 

#2 2012-05-19 14:13:27

Zparx
Scratcher
Registered: 2011-03-23
Posts: 500+

Re: > \ [|||] Revolutionary AI Movement! [|||] / <

bum,


http://images3.wikia.nocookie.net/__cb20101119183412/halo/images/4/43/Hero2.png
^ My rank on Halo: Reach :3

Offline

 

Board footer