Author |
Message |
Bankai
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!
_________________Current Demo: None! Go check it out!
|
Wed Oct 12, 2011 12:27 pm |
|
|
SS
Joined: Sat Aug 16, 2008 8:38 am Posts: 6670 Location: Darkest Antartica Country:
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.
|
Wed Oct 12, 2011 12:35 pm |
|
|
Bankai
Joined: Mon Aug 18, 2008 7:58 pm Posts: 1093
Gender: Male
|
Yea, but it's more complex than that I'm sure..
_________________Current Demo: None! Go check it out!
|
Wed Oct 12, 2011 12:39 pm |
|
|
SS
Joined: Sat Aug 16, 2008 8:38 am Posts: 6670 Location: Darkest Antartica Country:
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?
|
Wed Oct 12, 2011 12:41 pm |
|
|
Bankai
Joined: Mon Aug 18, 2008 7:58 pm Posts: 1093
Gender: Male
|
Not really. It's just I'm unsure when he is to jump, breathe fire, or move left/right.
_________________Current Demo: None! Go check it out!
|
Wed Oct 12, 2011 12:42 pm |
|
|
SS
Joined: Sat Aug 16, 2008 8:38 am Posts: 6670 Location: Darkest Antartica Country:
Gender: Male
Skype: Thaiberium
Currently Playing: The Game
|
Do you know anything about state machines?
|
Wed Oct 12, 2011 12:46 pm |
|
|
Bankai
Joined: Mon Aug 18, 2008 7:58 pm Posts: 1093
Gender: Male
|
State machines?
_________________Current Demo: None! Go check it out!
|
Wed Oct 12, 2011 3:27 pm |
|
|
Tid
Joined: Fri Jan 02, 2009 6:02 pm Posts: 7283 Location: Australia Country:
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.
_________________Ask me anything!!! Special thanks to Steven for my beautiful Deep avatar! <3
|
Wed Oct 12, 2011 7:22 pm |
|
|
Bankai
Joined: Mon Aug 18, 2008 7:58 pm Posts: 1093
Gender: Male
|
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
_________________Current Demo: None! Go check it out!
|
Wed Oct 12, 2011 8:46 pm |
|
|
SS
Joined: Sat Aug 16, 2008 8:38 am Posts: 6670 Location: Darkest Antartica Country:
Gender: Male
Skype: Thaiberium
Currently Playing: The Game
|
Not what I meant but that works too.
|
Thu Oct 13, 2011 12:11 am |
|
|
Bankai
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
_________________Current Demo: None! Go check it out!
|
Thu Oct 13, 2011 8:23 am |
|
|
Tid
Joined: Fri Jan 02, 2009 6:02 pm Posts: 7283 Location: Australia Country:
Gender: Male
MGN Username: Tid
Currently Playing: Deep™ The™ Game™
|
I'm sorry to hear that you do know VB. ;_;
_________________Ask me anything!!! Special thanks to Steven for my beautiful Deep avatar! <3
|
Thu Oct 13, 2011 8:44 am |
|
|
Bankai
Joined: Mon Aug 18, 2008 7:58 pm Posts: 1093
Gender: Male
|
And some Java. Right now i'm in AP Computer Science. Muahaha. Java.
_________________Current Demo: None! Go check it out!
|
Thu Oct 13, 2011 8:54 am |
|
|
Ichigo
Site Moderator
Joined: Mon Aug 11, 2008 6:37 am Posts: 1433 Location: .j Country:
|
AP computer Science, and you can't figure out how to program basic AI. Hory s***
_________________
|
Mon Oct 17, 2011 10:18 pm |
|
|