The McLeodGaming forums were permanently closed on April 30th, 2020. You are currently viewing a read-only archive.
View unanswered posts | View active topics It is currently Fri May 15, 2020 9:25 am



 [ 14 posts ] 
AI help 
Author Message
User avatar

Joined: Mon Aug 18, 2008 7:58 pm
Posts: 1093
Gender: Male
I'm sure you guys have played Super Mario Bros. (NES) correct? Could someone plainly explan a way to use Bowser's AI in the final castle? I'd love the help! :sweat:

_________________
ImageImage

Image
Current Demo: None! Go check it out!


Wed Oct 12, 2011 12:27 pm
User avatar

Joined: Sat Aug 16, 2008 8:38 am
Posts: 6670
Location: Darkest Antartica
Country: Pakistan (pk)
Gender: Male
Skype: Thaiberium
Currently Playing: The Game
Doesn't he go through a set pattern of attacks?

Just have them go through that while he is still alive.

_________________
Image


Wed Oct 12, 2011 12:35 pm
User avatar

Joined: Mon Aug 18, 2008 7:58 pm
Posts: 1093
Gender: Male
SS wrote:
Doesn't he go through a set pattern of attacks?

Just have them go through that while he is still alive.



Yea, but it's more complex than that I'm sure..

_________________
ImageImage

Image
Current Demo: None! Go check it out!


Wed Oct 12, 2011 12:39 pm
User avatar

Joined: Sat Aug 16, 2008 8:38 am
Posts: 6670
Location: Darkest Antartica
Country: Pakistan (pk)
Gender: Male
Skype: Thaiberium
Currently Playing: The Game
It's a platformer from the SNES era. What are you expecting him to do? Take cover behind a chest-high concrete wall? Use blind fire to keep you pinned and have his minions flank you?

_________________
Image


Wed Oct 12, 2011 12:41 pm
User avatar

Joined: Mon Aug 18, 2008 7:58 pm
Posts: 1093
Gender: Male
SS wrote:
It's a platformer from the SNES era. What are you expecting him to do? Take cover behind a chest-high concrete wall? Use blind fire to keep you pinned and have his minions flank you?


Not really. It's just I'm unsure when he is to jump, breathe fire, or move left/right.

_________________
ImageImage

Image
Current Demo: None! Go check it out!


Wed Oct 12, 2011 12:42 pm
User avatar

Joined: Sat Aug 16, 2008 8:38 am
Posts: 6670
Location: Darkest Antartica
Country: Pakistan (pk)
Gender: Male
Skype: Thaiberium
Currently Playing: The Game
Do you know anything about state machines?

_________________
Image


Wed Oct 12, 2011 12:46 pm
User avatar

Joined: Mon Aug 18, 2008 7:58 pm
Posts: 1093
Gender: Male
:O_o: State machines?

_________________
ImageImage

Image
Current Demo: None! Go check it out!


Wed Oct 12, 2011 3:27 pm
User avatar

Joined: Fri Jan 02, 2009 6:02 pm
Posts: 7283
Location: Australia
Country: Australia (au)
Gender: Male
MGN Username: Tid
Currently Playing: Deep™ The™ Game™
basically every few seconds the game will generate a number between 0 and 1. if greater than 0.5, bowser walks right, if less than, he walks left.
the jumping and fireballs are on a set pattern that can't change.

_________________
ImageImageImageImage
Ask me anything!!!
Special thanks to Steven for my beautiful Deep avatar! <3


Wed Oct 12, 2011 7:22 pm
WWW
User avatar

Joined: Mon Aug 18, 2008 7:58 pm
Posts: 1093
Gender: Male
Tid wrote:
basically every few seconds the game will generate a number between 0 and 1. if greater than 0.5, bowser walks right, if less than, he walks left.
the jumping and fireballs are on a set pattern that can't change.


Alright..I'll see what I can do. I know I need to do:

Dim intRandom As Random
-------------------------

intRandom = Rand(0,1)

'Called in Form1_Load sequence

------------
Timer1_Tick

'Various game code here

Call Rand()
-----------
Public Function Rand(ByVal Low As Long, _
ByVal High As Long) As Long
Rand = Int((High - Low + 1) * Rnd) + Low
End Function

'Within the timer, call Random during Battle


And depending on said value, it should make Bowser walk left/right

_________________
ImageImage

Image
Current Demo: None! Go check it out!


Wed Oct 12, 2011 8:46 pm
User avatar

Joined: Sat Aug 16, 2008 8:38 am
Posts: 6670
Location: Darkest Antartica
Country: Pakistan (pk)
Gender: Male
Skype: Thaiberium
Currently Playing: The Game
Not what I meant but that works too.

_________________
Image


Thu Oct 13, 2011 12:11 am
User avatar

Joined: Mon Aug 18, 2008 7:58 pm
Posts: 1093
Gender: Male
Well, the timer animates the game. Thus, it should hopefully call a random # being 0 or 1 each tick. Sorry if you don't know VB

_________________
ImageImage

Image
Current Demo: None! Go check it out!


Thu Oct 13, 2011 8:23 am
User avatar

Joined: Fri Jan 02, 2009 6:02 pm
Posts: 7283
Location: Australia
Country: Australia (au)
Gender: Male
MGN Username: Tid
Currently Playing: Deep™ The™ Game™
I'm sorry to hear that you do know VB. ;_;

_________________
ImageImageImageImage
Ask me anything!!!
Special thanks to Steven for my beautiful Deep avatar! <3


Thu Oct 13, 2011 8:44 am
WWW
User avatar

Joined: Mon Aug 18, 2008 7:58 pm
Posts: 1093
Gender: Male
Tid wrote:
I'm sorry to hear that you do know VB. ;_;


And some Java. Right now i'm in AP Computer Science. Muahaha. Java.

_________________
ImageImage

Image
Current Demo: None! Go check it out!


Thu Oct 13, 2011 8:54 am
Site Moderator
User avatar

Joined: Mon Aug 11, 2008 6:37 am
Posts: 1433
Location: .j
Country: Germany (de)
Bankai wrote:
Tid wrote:
I'm sorry to hear that you do know VB. ;_;


And some Java. Right now i'm in AP Computer Science. Muahaha. Java.



AP computer Science, and you can't figure out how to program basic AI. Hory s***

_________________
Image


Mon Oct 17, 2011 10:18 pm
Display posts from previous:  Sort by  
 [ 14 posts ] 

Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

cron
Powered by phpBB® Forum Software © phpBB Group
Designed by ST Software for PTF.