BTW can't you use Mario as a parent object to Luigi (although they are really brothers) in Game Maker 5? So that he will get all the properties of Mario, then give him unique input controls, lives etc.
But wouldn't Luigi die if Mario dies?
How are you displaying the score since it's so laggy?
I was using the same thing I used in Russian Roulette, where I took the score (a global variable), divided it by a power of 10, and used mod
10 to determine each digit's value. But, even worse, I used if
statements several times over for each value (0-9) to determine which tile to place.
ie. if (variable=0) tile_add(text at position x,y) nines
times over, six
times for each digit, doubled
for each player's score
So I scrapped it and put placeholder 0's as seen in the demo.
It worked for Russian Roulette because it only needed to update the score each time the trigger is pulled. For Vs. Mario Bros., I'd like the score to update continuously (or when certain sounds play (kicking an enemy, hitting the POW block, etc.).
So what I'll do now is this:
• use string_char_at
to convert the score variable to a string and determine the value of each digit
• create variables for each digit that equal string_char_at
• each numeral character tile will be named a single number (ie. 0, 1, 2, etc.)
• I'll use draw_background(variable name (which happens to equal the tile name in value (ie. 0, 1, 2, etc.) ))
; Holy shit, it works! I'm a stupid genius.
Don't know if any of this made any sense.
I can help you with the game and it is a good thing that you are using game maker 5 because 6 is the most fucked up of them all the games can't run on modern hardware unless they are patched
I knew there was a reason why I stopped at GM5.0, but I couldn't put my finger on it. What do you want to help out with? There's plenty that needs to be done: ideas for bosses, stage layout, sprite ripping, I don't even want to get into sound yet.