Powered by Invision Power Board

 
    Reply to this topicStart new topicStart Poll

> Need help making cpus, I don't know how to make a cpu
Canada
bambam95
  Posted: Apr 26 2007, 05:56 PM
Quote Post


NEED A NEW AVATAR
[*]

Group Icon
Group: Members
Posts: 378
Member No.: 3388
Joined: 2-March 07

Status: (0d) [--]


I am making a game called super smash bros Mario Manic and I don't know how to make cpus can somebody please help me


--------------------
*Insert Signature*
PMEmail PosterMSN
Top
Unspecified
Gorgoo
Posted: Apr 26 2007, 07:21 PM
Quote Post


Standard Member


Group Icon
Group: Members
Posts: 70
Member No.: 558
Joined: 16-August 04

Status: (0d) [--]


I don't know what you're using to make it in (Game Maker, MMF, etc.), but in a fighting game, you basically have CPUs check if certain conditions are met, and act based on that.

I've never tried one, but I'd imagine it'd be something like

if the player is within a certain distance horizontally, then run towards him.
if the player and CPU are within a certain distance, use a close attack.
If the player isn't at the same vertical point (If your game uses platforms), then jump or go down to get on the same level.
etc.

You'd just have a lot of those situations, basically, but they could be more general or more specific depending on how intelligent you want your opponent to be. Just remember that AI is really hard to make, and people still complain about unrealistic AI on professional games. smile.gif So don't worry if it doesn't turn out to be amazing. Just guess what the player would do, and program the CPUs to act how you would in those situations.

Good luck. nod.gif
PMEmail Poster
Top
Unspecified
Kenny
Posted: Apr 26 2007, 07:24 PM
Quote Post


Standard Member


Group Icon
Group: Banned
Posts: 1277
Member No.: 2649
Joined: 10-September 06

Status: (0d) [--]


Well first tell us what program your using.


--------------------
QUOTE (ZeldaFreak)
Microsoft should reply by sending a picture of bill gates ass to jack
PMEmail PosterUsers WebsiteIntegrity Messenger IMICQAOLYahooMSN
Top
Canada
bambam95
Posted: Apr 27 2007, 08:49 AM
Quote Post


NEED A NEW AVATAR
[*]

Group Icon
Group: Members
Posts: 378
Member No.: 3388
Joined: 2-March 07

Status: (0d) [--]


I'm using mmf2


--------------------
*Insert Signature*
PMEmail PosterMSN
Top
United States
Xgoff
Posted: Apr 27 2007, 04:34 PM
Quote Post


<):|
[*][*][*][*][*]
[*][*]

Group Icon
Group: Members
Posts: 52341
Member No.: 24
Joined: 13-October 03

Status: (0d) [--]


start with a flowchart

if you can't do one of those then there's no way you'll pull off programming one


--------------------

This post may contain original research or unverified claims.
Please disregard the above information and contact an administrator.

DISCLAIMER: by sending me (xgoff) a private message, you agree to the directives and their terms specified henceforth:
DIRECTIVE 1 (APPLE): i may or may not reply promptly or at all; and there are no guarantees to the usefulness of the reply. i may not acknowledge whether i have even received your private message
DIRECTIVE 2 (CHILE CON CARNE): as per my view, "private" applies only to the initial transaction, and the material of your message may or may not be made public at my discretion; as this will more than likely be a post in the CCC or IRC, you may not be able to view it
DIRECTIVE 3 (FEATHER DUSTER): you must address me (xgoff) as "Sir Master Xgofficus his Highest and Most Awesome the Third"; failure to comply with this term may invoke one or both of the above directives, and i will leave a burning bag of **** on your doorstep
DIRECTIVE 4 (BOOTSTRAP): if you have read this disclaimer, please private message me promptly, in compliance with the above terms, so i can ensure you are capable of following directions you idiot
this concludes the test of the emergency disclaimer system, your scheduled programming will now continue. satisfaction guaranteed, and 100% cash back available under certain circumstances; restrictions may or may not apply within your place of residence
NOTICE: these directives and their terms may change at any time, without notice; as a private message transaction to myself assumes an understanding and full compliance of the above, you should ensure you are fully aware of the above terms at any point before sending a private message; any message received is assumed to have been sent in compliance with the above

QUOTE
(5:25:58 PM) Mikau: xgoff
(5:26:00 PM) Mikau: guess what
(5:26:04 PM) Xgoff: chicken butt
(5:26:09 PM) Mikau: **** you
PMEmail PosterUsers WebsiteAOLMSN
Top
United States
Nicholas Ainsworth
Posted: Apr 27 2007, 05:43 PM
Quote Post


cue fanfare
[M][S][*][*][*]
[*][*][KFC]

Group Icon
Group: Global Moderators
Posts: 25399
Member No.: 621
Joined: 27-September 04

Status: (0d) [--]


This request is very vague and judging by the quality of youe post, I'm guessing this is your first attempt at making a game.

In which case, I would recommend you start out with something much simpler than an SSB clone.


--------------------
user posted image

Currently seeking talented and dedicated Python users for assistance with an important project. PM me for details.
PMEmail PosterUsers WebsiteAOL
Top
United States
Xgoff
Posted: Apr 27 2007, 05:54 PM
Quote Post


<):|
[*][*][*][*][*]
[*][*]

Group Icon
Group: Members
Posts: 52341
Member No.: 24
Joined: 13-October 03

Status: (0d) [--]


QUOTE (Nicholas Ainsworth @ Apr 27 2007, 04:43 PM)
in which case, I would recommend you start out with something much simpler than an SSB clone.

like breakout


--------------------

This post may contain original research or unverified claims.
Please disregard the above information and contact an administrator.

DISCLAIMER: by sending me (xgoff) a private message, you agree to the directives and their terms specified henceforth:
DIRECTIVE 1 (APPLE): i may or may not reply promptly or at all; and there are no guarantees to the usefulness of the reply. i may not acknowledge whether i have even received your private message
DIRECTIVE 2 (CHILE CON CARNE): as per my view, "private" applies only to the initial transaction, and the material of your message may or may not be made public at my discretion; as this will more than likely be a post in the CCC or IRC, you may not be able to view it
DIRECTIVE 3 (FEATHER DUSTER): you must address me (xgoff) as "Sir Master Xgofficus his Highest and Most Awesome the Third"; failure to comply with this term may invoke one or both of the above directives, and i will leave a burning bag of **** on your doorstep
DIRECTIVE 4 (BOOTSTRAP): if you have read this disclaimer, please private message me promptly, in compliance with the above terms, so i can ensure you are capable of following directions you idiot
this concludes the test of the emergency disclaimer system, your scheduled programming will now continue. satisfaction guaranteed, and 100% cash back available under certain circumstances; restrictions may or may not apply within your place of residence
NOTICE: these directives and their terms may change at any time, without notice; as a private message transaction to myself assumes an understanding and full compliance of the above, you should ensure you are fully aware of the above terms at any point before sending a private message; any message received is assumed to have been sent in compliance with the above

QUOTE
(5:25:58 PM) Mikau: xgoff
(5:26:00 PM) Mikau: guess what
(5:26:04 PM) Xgoff: chicken butt
(5:26:09 PM) Mikau: **** you
PMEmail PosterUsers WebsiteAOLMSN
Top
Canada
bambam95
  Posted: Apr 27 2007, 06:00 PM
Quote Post


NEED A NEW AVATAR
[*]

Group Icon
Group: Members
Posts: 378
Member No.: 3388
Joined: 2-March 07

Status: (0d) [--]


QUOTE
I don't know what you're using to make it in (Game Maker, MMF, etc.), but in a fighting game, you basically have CPUs check if certain conditions are met, and act based on that.

I've never tried one, but I'd imagine it'd be something like

if the player is within a certain distance horizontally, then run towards him.
if the player and CPU are within a certain distance, use a close attack.
If the player isn't at the same vertical point (If your game uses platforms), then jump or go down to get on the same level.
etc.

You'd just have a lot of those situations, basically, but they could be more general or more specific depending on how intelligent you want your opponent to be. Just remember that AI is really hard to make, and people still complain about unrealistic AI on professional games. smile.gif So don't worry if it doesn't turn out to be amazing. Just guess what the player would do, and program the CPUs to act how you would in those situations.

Good luck.
Thank you that really helped me understand ph34r.gif

This post has been edited by bamnick on Apr 28 2007, 01:13 PM


--------------------
*Insert Signature*
PMEmail PosterMSN
Top
Unspecified
Derrike G.
Posted: Apr 27 2007, 06:40 PM
Quote Post


Standard Member
[*]

Group Icon
Group: Banned
Posts: 12326
Member No.: 2028
Joined: 20-April 06

Status: (0d) [--]


Collision bubbles.
PM
Top
United States
Xgoff
Posted: Apr 27 2007, 06:42 PM
Quote Post


<):|
[*][*][*][*][*]
[*][*]

Group Icon
Group: Members
Posts: 52341
Member No.: 24
Joined: 13-October 03

Status: (0d) [--]


QUOTE (Derrike G. @ Apr 27 2007, 05:40 PM)
Collision bubbles.

collision bubbles alone won't help

plus they're too predictable


--------------------

This post may contain original research or unverified claims.
Please disregard the above information and contact an administrator.

DISCLAIMER: by sending me (xgoff) a private message, you agree to the directives and their terms specified henceforth:
DIRECTIVE 1 (APPLE): i may or may not reply promptly or at all; and there are no guarantees to the usefulness of the reply. i may not acknowledge whether i have even received your private message
DIRECTIVE 2 (CHILE CON CARNE): as per my view, "private" applies only to the initial transaction, and the material of your message may or may not be made public at my discretion; as this will more than likely be a post in the CCC or IRC, you may not be able to view it
DIRECTIVE 3 (FEATHER DUSTER): you must address me (xgoff) as "Sir Master Xgofficus his Highest and Most Awesome the Third"; failure to comply with this term may invoke one or both of the above directives, and i will leave a burning bag of **** on your doorstep
DIRECTIVE 4 (BOOTSTRAP): if you have read this disclaimer, please private message me promptly, in compliance with the above terms, so i can ensure you are capable of following directions you idiot
this concludes the test of the emergency disclaimer system, your scheduled programming will now continue. satisfaction guaranteed, and 100% cash back available under certain circumstances; restrictions may or may not apply within your place of residence
NOTICE: these directives and their terms may change at any time, without notice; as a private message transaction to myself assumes an understanding and full compliance of the above, you should ensure you are fully aware of the above terms at any point before sending a private message; any message received is assumed to have been sent in compliance with the above

QUOTE
(5:25:58 PM) Mikau: xgoff
(5:26:00 PM) Mikau: guess what
(5:26:04 PM) Xgoff: chicken butt
(5:26:09 PM) Mikau: **** you
PMEmail PosterUsers WebsiteAOLMSN
Top
Canada
bambam95
Posted: Apr 29 2007, 10:24 AM
Quote Post


NEED A NEW AVATAR
[*]

Group Icon
Group: Members
Posts: 378
Member No.: 3388
Joined: 2-March 07

Status: (0d) [--]


QUOTE
start with a flowchart


I'm sorry but whats a flow chart huh.gif


--------------------
*Insert Signature*
PMEmail PosterMSN
Top
United States
Xgoff
Posted: Apr 29 2007, 11:30 AM
Quote Post


<):|
[*][*][*][*][*]
[*][*]

Group Icon
Group: Members
Posts: 52341
Member No.: 24
Joined: 13-October 03

Status: (0d) [--]


QUOTE (bamnick @ Apr 29 2007, 09:24 AM)

I'm sorry but whats a flow chart huh.gif

user posted image

except replace that with everything from player position to what the player is actually doing


--------------------

This post may contain original research or unverified claims.
Please disregard the above information and contact an administrator.

DISCLAIMER: by sending me (xgoff) a private message, you agree to the directives and their terms specified henceforth:
DIRECTIVE 1 (APPLE): i may or may not reply promptly or at all; and there are no guarantees to the usefulness of the reply. i may not acknowledge whether i have even received your private message
DIRECTIVE 2 (CHILE CON CARNE): as per my view, "private" applies only to the initial transaction, and the material of your message may or may not be made public at my discretion; as this will more than likely be a post in the CCC or IRC, you may not be able to view it
DIRECTIVE 3 (FEATHER DUSTER): you must address me (xgoff) as "Sir Master Xgofficus his Highest and Most Awesome the Third"; failure to comply with this term may invoke one or both of the above directives, and i will leave a burning bag of **** on your doorstep
DIRECTIVE 4 (BOOTSTRAP): if you have read this disclaimer, please private message me promptly, in compliance with the above terms, so i can ensure you are capable of following directions you idiot
this concludes the test of the emergency disclaimer system, your scheduled programming will now continue. satisfaction guaranteed, and 100% cash back available under certain circumstances; restrictions may or may not apply within your place of residence
NOTICE: these directives and their terms may change at any time, without notice; as a private message transaction to myself assumes an understanding and full compliance of the above, you should ensure you are fully aware of the above terms at any point before sending a private message; any message received is assumed to have been sent in compliance with the above

QUOTE
(5:25:58 PM) Mikau: xgoff
(5:26:00 PM) Mikau: guess what
(5:26:04 PM) Xgoff: chicken butt
(5:26:09 PM) Mikau: **** you
PMEmail PosterUsers WebsiteAOLMSN
Top
Canada
bambam95
Posted: Apr 29 2007, 02:22 PM
Quote Post


NEED A NEW AVATAR
[*]

Group Icon
Group: Members
Posts: 378
Member No.: 3388
Joined: 2-March 07

Status: (0d) [--]


Thank you very much xgoff



I feel stupid now ohmy.gif


--------------------
*Insert Signature*
PMEmail PosterMSN
Top
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

  Topic Options Topic Options Reply to this topicStart new topicStart Poll

 




[ Script Execution time: 0.0598 ]   [ 14 queries used ]   [ GZIP Enabled ]   [ Server Load: 0.28 ]