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

#1 2010-07-31 18:02:17

Pokemonfan226
Scratcher
Registered: 2010-07-10
Posts: 13

Need help making a 2D Fighting Game

Im making a fIghting game, but I can't make CPUs! No matter how hard I try, they don't Work!P.S i have tryed using this:
<when green flag clicked>
<forever>
<move(10)steps>
<move(10)steps>
<move(10)steps>
<move(10)steps>
<move(10)steps>
<repeat until><touching[ Sprite 1
<next costume>


http://sdb.drshnaps.com/objects/7/971/Sprite/DoraemonGBA.png

Offline

 

#2 2010-07-31 20:39:58

m71134
Scratcher
Registered: 2010-03-03
Posts: 1000+

Re: Need help making a 2D Fighting Game

I'm not too good with fighting games, but this thread might help you get an idea of how to create a CPU.

Offline

 

#3 2010-07-31 21:19:18

Locomule
Scratcher
Registered: 2009-08-24
Posts: 500+

Re: Need help making a 2D Fighting Game

watza cpu?


aka Pain from DragonSpires, Delrith Online, BotBattle, Urban Dead etc etc lol

Offline

 

#4 2010-07-31 21:27:04

m71134
Scratcher
Registered: 2010-03-03
Posts: 1000+

Re: Need help making a 2D Fighting Game

Locomule wrote:

watza cpu?

In a computer game, it's a player controlled by a computer instead of an actual person.

Last edited by m71134 (2010-07-31 21:27:30)

Offline

 

#5 2010-07-31 21:45:48

Locomule
Scratcher
Registered: 2009-08-24
Posts: 500+

Re: Need help making a 2D Fighting Game

upload your project and post a link to it and I/we will hook you up asap
and sorry, in my day a cpu was a central processing unit


aka Pain from DragonSpires, Delrith Online, BotBattle, Urban Dead etc etc lol

Offline

 

#6 2010-07-31 21:47:24

Locomule
Scratcher
Registered: 2009-08-24
Posts: 500+

Re: Need help making a 2D Fighting Game

starting to remind me of how the term "sprite" started!


aka Pain from DragonSpires, Delrith Online, BotBattle, Urban Dead etc etc lol

Offline

 

#7 2010-08-01 05:08:53

murpho
Scratcher
Registered: 2010-07-01
Posts: 1000+

Re: Need help making a 2D Fighting Game

This isnt even an A.I. script. Try this:
[blocks]
<when green flag clicked>
<forever>
<point towards( mycharacter
<move(10 )steps>
<if><(  <distance to[ mycharacter<<>50  )>
<switch to costume[ attack
<wait( 0.1  )secsc>
<switch to costume[ standing
<change{ health }by( 1
<wait( 1 )secsc>
<end>
<end>
[/blocks]


https://lh6.googleusercontent.com/-l-rgCPiQ9pY/Tp32n1MRUEI/AAAAAAAADoA/HNQWbO8OOaA/s510/soccerleague.gif

Offline

 

Board footer