SRB2 Message Board  

Go Back   SRB2 Message Board > Sonic Robo Blast 2 > Help

Reply
 
Thread Tools Search this Thread
Old 4 Weeks Ago   #1
Ian123asd
 
Ian123asd's Avatar
Default Bosses and Bots?

Is there any way to make new bosses? Is there a way to make bosses that run on the ground instead of flying? Also, can we make bots than are usable for netgames (basically how it works in SRB2JTE)?

Oh, and by the way, how do I edit the information of a pre-existing character (such as Sonic)?

Last edited by Ian123asd; 4 Weeks Ago at 12:26 AM. Reason: I just remembered a new question.
Ian123asd is offline   Reply With Quote
Old 4 Weeks Ago   #2
"Lat'"
Stop it
 
"Lat'"'s Avatar
Default

Lua and even SOC should be able to make boss enemies that can have totally custom and very flexible behaviours (in the case of Lua).
For SOC I recommend checking this page from the Wiki to get started.
If you've ever used Lua, this pages explains how to define new objects like SOC
and a MobjThinker hook will let it perform all kinds of crazy actions.

I also recommend cracking open any mod that does something similar and take a look at their code, you can learn a thing or two. Just look up anything you don't understand on the SRB2Wiki since you'll most definitely find an answer there.


For bots, there is no in-game way to directly get a Tails bot to spawn in netgames, the only way that doesn't involve heavy (?) source code editing would be to code your own using Lua, which will prove tedious since player physics are weird to say the least and have a million of variables to take into account, and Lua may not necessarily have access to all of them. (The movement acceleration code itself is already a sight to behold)


To my knowledge there's no way to edit existing characters' stats through a seperate S_SKIN as it'll just create a new entry on the skin list instead (And to make it worse, Sonic's stats are hardcoded in the EXE itself). Lua is ALSO unable to edit the skin list directly so your only influence on stats would be editing player variables through Lua (like normalspeed, jumpheight etc etc)
__________________
Quote:
Originally Posted by Bronydude2k5 View Post
If you make me a Sash Lilac wad, I'll make you a sonic sprite hack of any choice.
"Lat'" is offline   Reply With Quote
Old 4 Weeks Ago   #3
Ian123asd
 
Ian123asd's Avatar
Default

Quote:
Originally Posted by "Lat'" View Post
Lua and even SOC should be able to make boss enemies that can have totally custom and very flexible behaviours (in the case of Lua).
For SOC I recommend checking this page from the Wiki to get started.
If you've ever used Lua, this pages explains how to define new objects like SOC
and a MobjThinker hook will let it perform all kinds of crazy actions.

I also recommend cracking open any mod that does something similar and take a look at their code, you can learn a thing or two. Just look up anything you don't understand on the SRB2Wiki since you'll most definitely find an answer there.


For bots, there is no in-game way to directly get a Tails bot to spawn in netgames, the only way that doesn't involve heavy (?) source code editing would be to code your own using Lua, which will prove tedious since player physics are weird to say the least and have a million of variables to take into account, and Lua may not necessarily have access to all of them. (The movement acceleration code itself is already a sight to behold)


To my knowledge there's no way to edit existing characters' stats through a seperate S_SKIN as it'll just create a new entry on the skin list instead (And to make it worse, Sonic's stats are hardcoded in the EXE itself). Lua is ALSO unable to edit the skin list directly so your only influence on stats would be editing player variables through Lua (like normalspeed, jumpheight etc etc)
Well, perhaps we could re-engineer the code from the enemy tutorial to make a bot? Also, by information I mean the short summary of the character you see at the select screen.
__________________
Choco ain't the only thing loco!
Ian123asd is offline   Reply With Quote
Old 4 Weeks Ago   #4
GreenKnight9000
 
GreenKnight9000's Avatar
Default

I always thought to do a similar thing like the classic games and make the A.I more-or-less copy your action a second later (so you jump from platform-to-platform and the bot does the same thing), perhaps in a way do something similar to a realtime demo recording or something like that, with the bot doing the actions whilst ingame.
__________________
Certified Emerald Hunter for online matches
-Known as ThomasTheHedgehog888 in matches-
GreenKnight9000 is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 09:18 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2019, vBulletin Solutions, Inc.