Author [EN] [PL] [ES] [PT] [IT] [DE] [FR] [NL] [TR] [SR] [AR] [RU] [ID] Topic: Metroidvania help  (Read 5456 times)

0 Members and 1 Guest are viewing this topic.

Offline Crimson_Curse

  • Vampire Hunter
  • ***
  • Posts: 160
  • Gender: Male
  • Only at the Castle Gate...
    • Awards
  • Favorite Game: Castlevania: Symphony of the Night (PS1/SS)
  • Likes:
Metroidvania help
« on: April 22, 2012, 04:04:58 PM »
0
I'm making my own game called Castlevania: Epitaph of blood as a bunch of you guys may know already. But I was thinking about trying a metroidvania style for some rooms, but I can't get it to work.
I'm using Game maker 8 pro. If anyone can help a little with my problem it would be awesome!
I wanna be able to hit and object on ROOM1 and go to Room2 but get in on the same position I was before, cause when I enter the room, my player goes straight to the middle of the other room, and I want him to go right where the laast door was.
Just see a video of any sotn-like game and you'll know what I'm talking about.
Please :3

Offline Inccubus

  • Wannabe Great Old One
  • Master Hunter
  • *****
  • Posts: 3265
  • Gender: Male
  • Warrior
  • Awards The Retro Gamer: Has a heated passion for the oldschool VG Titles. SuperOld Dungeonite: Members who have been around since the oldOLD days. Permanent Resident: Seems to always be around to post/reply.
    • Awards
  • Favorite Game: Vampire Killer (MSX)
  • Likes:
Re: Metroidvania help
« Reply #1 on: April 22, 2012, 04:28:42 PM »
0
Put start up code in the second room that sets your character's x and y values to where you want him to be. If you have multiple entrances you're gonna need to make a global variable to so your code knows what entrance is being used and what coordinates to set.
"Stuff and things."

Offline Corpsecrank

  • XXX
  • Vampire Hunter
  • ***
  • Posts: 339
  • Gender: Male
  • Still uttering the same nonsense.
    • Awards
  • Favorite Game: Castlevania: Symphony of the Night (PS1/SS)
  • Likes:
Re: Metroidvania help
« Reply #2 on: April 22, 2012, 04:30:22 PM »
0
You have to set the starting position of your character object for each room. I don't know game maker very well since I could never get it to run correctly. But if it is anything like the other software eg multimedia fusion, construct etc you have a frame for each room and at the start of that frame/layout you need to set the starting position of your character. You can't control it directly by the frame though. You need to create this in a way that allows moving into the frame from either end. So if you have a hall and it has a door on each side whatever frame you enter from has to place your character at the appropriate location to be on the other side. So if you leave the right side of a frame and want to enter on the left of the hall you need to have it place the character at a location on the left end of the hall. If you leave on the left side of a frame and want to enter the hall from the right you need to have it set your character at a location on the right end of the hall. You would follow that same method for every doorway and I would think you could control it based on where the character collides so on collision with X move character to Y location on Z frame.
You can find all my projects here: https://thetilepile.blogspot.com/

Offline Crimson_Curse

  • Vampire Hunter
  • ***
  • Posts: 160
  • Gender: Male
  • Only at the Castle Gate...
    • Awards
  • Favorite Game: Castlevania: Symphony of the Night (PS1/SS)
  • Likes:
Re: Metroidvania help
« Reply #3 on: April 22, 2012, 04:35:51 PM »
0
Yeah! You got it. But you got the theory part... That's what I already thought about, but I can't get it to work.Maybe a little coding help would do the job. I mean I know that Cv2 revamped had this system. Esco's sotn has it too... There must be somebody that knows how to do it on codes to help me out :/
But thanks man! I'm glad you at least gave me a confirmation on the theory!

Offline TheouAegis

  • Amateur Auteur of GMvania
  • Master Hunter
  • *****
  • Posts: 1860
  • Gender: Male
  • Awards The Retro Gamer: Has a heated passion for the oldschool VG Titles. The Great Defender will always defend the object of his or her fandom. Hack Master makes creations out of CV parts. (S)he makes Dr. Frankenstein proud.
    • GMvania Developer's Blog
    • Awards
  • Likes:
Re: Metroidvania help
« Reply #4 on: April 22, 2012, 04:58:03 PM »
0
I don't understand what you're trying to do. Pictures please.
Your mom has had more floppies put in her than a Commodore 64!


Follow my lack of progress on my game at my blog:
http://gmvania.blogspot.com

Offline Inccubus

  • Wannabe Great Old One
  • Master Hunter
  • *****
  • Posts: 3265
  • Gender: Male
  • Warrior
  • Awards The Retro Gamer: Has a heated passion for the oldschool VG Titles. SuperOld Dungeonite: Members who have been around since the oldOLD days. Permanent Resident: Seems to always be around to post/reply.
    • Awards
  • Favorite Game: Vampire Killer (MSX)
  • Likes:
Re: Metroidvania help
« Reply #5 on: April 22, 2012, 05:07:57 PM »
0
Put start up code in the second room that sets your character's x and y values to where you want him to be. If you have multiple entrances you're gonna need to make a global variable to so your code knows what entrance is being used and what coordinates to set.

By start up code I mean code you type into the creation code area of the room.
« Last Edit: April 22, 2012, 05:09:33 PM by Inccubus »
"Stuff and things."

Offline Crimson_Curse

  • Vampire Hunter
  • ***
  • Posts: 160
  • Gender: Male
  • Only at the Castle Gate...
    • Awards
  • Favorite Game: Castlevania: Symphony of the Night (PS1/SS)
  • Likes:
Re: Metroidvania help
« Reply #6 on: April 22, 2012, 05:12:26 PM »
0

Like this.
You collide on a door object or on an invisible spot on the border of a room and you go to the other room as if you just went thru a door. But being able to move back and forth while having the same position you had before leaving the room. Like you enter a door, on the other room it should be a door behing you.

Offline Crimson_Curse

  • Vampire Hunter
  • ***
  • Posts: 160
  • Gender: Male
  • Only at the Castle Gate...
    • Awards
  • Favorite Game: Castlevania: Symphony of the Night (PS1/SS)
  • Likes:
Re: Metroidvania help
« Reply #7 on: April 22, 2012, 05:20:56 PM »
0
Yeah. But I really don't know how to set up this system. And I really don't want to bother you guys. If anyone could make a gm8 file with a tutorial or just a ''put this code here and this one there'' text. I've already tried this back in 2010. I'm trying it again. And I'm starting to think I can't do it :/

Offline Inccubus

  • Wannabe Great Old One
  • Master Hunter
  • *****
  • Posts: 3265
  • Gender: Male
  • Warrior
  • Awards The Retro Gamer: Has a heated passion for the oldschool VG Titles. SuperOld Dungeonite: Members who have been around since the oldOLD days. Permanent Resident: Seems to always be around to post/reply.
    • Awards
  • Favorite Game: Vampire Killer (MSX)
  • Likes:
Re: Metroidvania help
« Reply #8 on: April 22, 2012, 07:02:46 PM »
0
It's really simple.
-Go to the creation code for the very first room.
-Declare some 2 global variable. (instructions are in the GM help file)
-Call one coordinate_x and the other one coordinate_y or whatever you prefer.
-Then in the door object have it set coordinate_x to player_object_name.x and coordinate_y to the player object's y.
-Now in the creation code of all the rooms put in two if statement if there's only one entrance, or two switch statements if there are multiple entrances.
-Have one statement check the value of coordinate_x and the other coordinate_y then set the player object's new x and y appropriately.
-So in this way you can make the room set the player object's new position automatically.

Another way to do it is make all your rooms persistent, but of course, this would hog more memory and then you have to make objects to regenerate enemies that were previously destroyed which would be a lot more work.

Either way this is all very basic code that you're gonna need to learn anyway so you should definitely use the help file and make it yourself.

"Stuff and things."

Offline Crimson_Curse

  • Vampire Hunter
  • ***
  • Posts: 160
  • Gender: Male
  • Only at the Castle Gate...
    • Awards
  • Favorite Game: Castlevania: Symphony of the Night (PS1/SS)
  • Likes:
Re: Metroidvania help
« Reply #9 on: April 22, 2012, 07:16:30 PM »
0
I'll try it out later! Thanks!

Offline TheouAegis

  • Amateur Auteur of GMvania
  • Master Hunter
  • *****
  • Posts: 1860
  • Gender: Male
  • Awards The Retro Gamer: Has a heated passion for the oldschool VG Titles. The Great Defender will always defend the object of his or her fandom. Hack Master makes creations out of CV parts. (S)he makes Dr. Frankenstein proud.
    • GMvania Developer's Blog
    • Awards
  • Likes:
Re: Metroidvania help
« Reply #10 on: April 22, 2012, 10:29:22 PM »
0
Or download my Castlevania engine and study how I handled doors (ignore the transition effect) and how the objects btop_up, btop_dn, bbot_up, and bbot_dn tie in to each other.

Another thing to try, though I'm not sure how well it will work, is when you collide with the door, use

room_set_code(target room, "player.x=0; player.y="+string(y))

or

room_set_code(target room, "player.x=room_width; player.y="+string(y))

Something like that.
Your mom has had more floppies put in her than a Commodore 64!


Follow my lack of progress on my game at my blog:
http://gmvania.blogspot.com

Offline Dracula9

  • That One Guy
  • Master Hunter
  • *****
  • Posts: 2417
  • Gender: Male
  • Blargh
  • Awards 2015-01-Music Contest Gold Prize 2014-12-Music Contest Gold Prize 2014-11-November FinalBoss Sprite Contest 2nd Place Winner A great musician and composer of various melodies both original and game-based. 2018-06 Sprite Contest First Place
    • Awards
  • Favorite Game: Super Castlevania IV (SNES)
  • Likes:
Re: Metroidvania help
« Reply #11 on: April 23, 2012, 06:20:25 AM »
0
I've got an old Metroidvania engine I can send you if you want. It's nothing overly fancy as far as its features, but I'm sure you can adjust it to your needs.


Trøllabundin eri eg, inn í hjartarót.

Offline Crimson_Curse

  • Vampire Hunter
  • ***
  • Posts: 160
  • Gender: Male
  • Only at the Castle Gate...
    • Awards
  • Favorite Game: Castlevania: Symphony of the Night (PS1/SS)
  • Likes:
Re: Metroidvania help
« Reply #12 on: April 23, 2012, 09:02:35 AM »
0
Thanks guys! I'm glad that everyone around here is friendly!
Drac, I would love to take a look at your engine if its possible. Do you have some sort of link for it? You can PM me the link if you want :3 Thanks again !

Tags:
 

anything