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

#1 2012-11-02 16:24:44

Link904
New Scratcher
Registered: 2012-11-02
Posts: 16

How to do a cpu like in video games on scratch?

I'am asking how to make a sprite react to you like in fighting games?

Offline

 

#2 2012-11-02 19:55:19

henley
Scratcher
Registered: 2008-06-21
Posts: 1000+

Re: How to do a cpu like in video games on scratch?

Program it, of course!

Any specific questions? It really depends on how you want the objects to react.


"I've worked so hard for you and you give me nothing in return. Do you need help... Or do I?"

Offline

 

#3 2012-11-03 05:34:04

Link904
New Scratcher
Registered: 2012-11-02
Posts: 16

Re: How to do a cpu like in video games on scratch?

henley wrote:

Program it, of course!

Any specific questions? It really depends on how you want the objects to react.

What do you mean?
I mean how to do a cpu like in video game?

Offline

 

#4 2012-11-03 06:30:49

notaloser
Scratcher
Registered: 2011-12-06
Posts: 100+

Re: How to do a cpu like in video games on scratch?

Link904 wrote:

henley wrote:

Program it, of course!

Any specific questions? It really depends on how you want the objects to react.

What do you mean?
I mean how to do a cpu like in video game?

What he means is that, how to make a computer controlled player.


http://gifs.gifbin.com/1238409599_nom_nom.gifhttp://cdn3.lolzsquad.com/wp-content/uploads/2012/10/Come-here-I-want-to-tell-you-something.-.gif

Offline

 

#5 2012-11-03 11:35:44

henley
Scratcher
Registered: 2008-06-21
Posts: 1000+

Re: How to do a cpu like in video games on scratch?

But still, you guys need to be more specific.

What do you want the CPU to do?


"I've worked so hard for you and you give me nothing in return. Do you need help... Or do I?"

Offline

 

#6 2012-11-03 12:08:33

Gravitation
New Scratcher
Registered: 2012-09-26
Posts: 500+

Re: How to do a cpu like in video games on scratch?

I think you mean AI.

Check this out.  smile

Offline

 

#7 2012-11-03 15:49:50

Link904
New Scratcher
Registered: 2012-11-02
Posts: 16

Re: How to do a cpu like in video games on scratch?

Thanks but that never help I'am look for a two player game  computer vs player

Offline

 

#8 2012-11-03 16:41:53

TorbyFork234
Scratcher
Registered: 2012-03-01
Posts: 1000+

Re: How to do a cpu like in video games on scratch?

Link904 wrote:

Thanks but that never help I'am look for a two player game  computer vs player

In which you would need to program the computer's AI.

Offline

 

#9 2012-11-03 17:05:25

JH1010
Scratcher
Registered: 2012-05-31
Posts: 1000+

Re: How to do a cpu like in video games on scratch?

Two things:

1) An AI is very complicated.
2) This belongs in Help With Scripts.

Offline

 

#10 2012-11-03 17:38:50

Program_worm
New Scratcher
Registered: 2012-11-03
Posts: 2

Re: How to do a cpu like in video games on scratch?

Well try and program it to act randomly, yet respond to the player.

Offline

 

#11 2012-11-04 03:34:21

Link904
New Scratcher
Registered: 2012-11-02
Posts: 16

Re: How to do a cpu like in video games on scratch?

So how do I do that?

Offline

 

#12 2012-11-04 11:20:57

henley
Scratcher
Registered: 2008-06-21
Posts: 1000+

Re: How to do a cpu like in video games on scratch?

Maybe you were a little optimistic with this project idea...

I really don't mean to sound mean, but it seems a little too advanced.

Maybe you should just keep making other, more easy, projects until you get good enough at scripting to create a functional AI. Because, a lot of advanced Scratchers still can't even program good AI that moves randomly like a player.


"I've worked so hard for you and you give me nothing in return. Do you need help... Or do I?"

Offline

 

#13 2012-11-05 03:02:22

fg123
Scratcher
Registered: 2008-11-13
Posts: 1000+

Re: How to do a cpu like in video games on scratch?

At the same time, you're being very vague with your question. There are many many types of Computer VS Player out there. Do you want a Pong AI? A chess AI? Tic-tac-toe AI? Top Down Shooter AI? Platformer AI?


Hai.

Offline

 

#14 2012-11-05 04:01:46

jontmy00
Scratcher
Registered: 2011-11-28
Posts: 1000+

Re: How to do a cpu like in video games on scratch?

Program_worm wrote:

Well try and program it to act randomly, yet respond to the player.

Define "randomly". The AI usually and should try to pick the most intelligent response to the player. But not randomly.


FOR ALL THE NEWS ON UPDATES FOR SIMPLISTICRAFT, CLICK HERE.

Offline

 

Board footer