Author [EN] [PL] [ES] [PT] [IT] [DE] [FR] [NL] [TR] [SR] [AR] [RU] [ID] Topic: I need minor help correcting some coding  (Read 3138 times)

0 Members and 1 Guest are viewing this topic.

Offline reiko26

  • Hunter in Training
  • **
  • Posts: 72
  • Only at the Castle Gate...
    • Awards
I need minor help correcting some coding
« on: March 14, 2012, 10:22:38 PM »
0
Hey guys, i have been having problems with getting certain enimies in game  to work properly, for instance, me and one of my friends are trying to code the skull knight from cv3 we just about have his movement right but it apears that he hits the player before you see the attack animation. can someone help us please. we are still getting the feel of coding but we are not pros. I dont want to get in anyones way if they have work to do, so if someone is available and knows gmk pretty well, please feel free to let  me know something. thanx in advance guys.

Offline Lumi Kløvstad

  • Specialist in Revolutions, Smuggling, Gunrunning, Bootlegging, and Orgies
  • Master Hunter
  • *****
  • Posts: 1930
  • Simon's in goddamn Smash
  • Awards Permanent Resident: Seems to always be around to post/reply.
    • Awards
  • Favorite Game: Castlevania 64 (N64)
  • Likes:
Re: I need minor help correcting some coding
« Reply #1 on: March 15, 2012, 02:59:19 AM »
0
This needs to be in fanworks.

As for the topic, sorry. I'm rubbish at coding, so I would do more harm than good.
How not to be a dark lord: the answer to that is a terribly interesting answer that involves an almost Jedi-like adherence to keeping oneself under control and finding ways to be true to yourself in a way that doesn't encourage the worst parts of you to become dangerously exaggerated and instead feeds your better nature. Also, protip: don't fuck with Alchemy or strike up any deals with ancient Japanese Shinigami gods no matter how tempting the deal or how suavely dressed the Shinigami is.

Offline uzo

  • Now then...
  • Master Hunter
  • *****
  • Posts: 3379
  • Gender: Male
  • Awards The Retro Gamer: Has a heated passion for the oldschool VG Titles. SuperOld Dungeonite: Members who have been around since the oldOLD days. Hack Master makes creations out of CV parts. (S)he makes Dr. Frankenstein proud. The Music Fanatic: Listens to a large collection of music, posts lyrics, etc.
    • Skylance Studio
    • Awards
  • Favorite Game: Castlevania: Symphony of the Night (PS1/SS)
  • Likes:
Re: I need minor help correcting some coding
« Reply #2 on: March 15, 2012, 05:19:54 AM »
0
You're going to have to be far more detailed than that. Let's start with; What language do you code in? C++? Java? VB? etc.

Offline VladCT

  • Dark Lord of Wallachia
  • Master Hunter
  • *****
  • Posts: 2003
  • Gender: Male
  • The night is still young...
  • Awards 2015-01-Sprite Contest Gold Permanent Resident: Seems to always be around to post/reply. The Retro Gamer: Has a heated passion for the oldschool VG Titles.
    • Awards
  • Favorite Game: Castlevania Bloodlines (Genesis)
  • Likes:
Re: I need minor help correcting some coding
« Reply #3 on: March 15, 2012, 09:58:43 AM »
0
You're going to have to be far more detailed than that. Let's start with; What language do you code in? C++? Java? VB? etc.
...and knows gmk pretty well...
I don't think he's coding from scratch... :-X
It is precisely because it never cared, that people do care.  It's something which it's lacking, because that which it has, it has lackluster of.
^^
You are now reading this in Robert Belgrade's voice.

Then Lords of Shadow 2 just takes a big, semi-solid, smelly, pea-green dump all over everything.

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: I need minor help correcting some coding
« Reply #4 on: March 16, 2012, 08:26:48 AM »
0
Yeah gonna need someone who knows game maker to answer the question. This would be gml.
You can find all my projects here: https://thetilepile.blogspot.com/

Offline Inccubus

  • Wannabe Great Old One
  • Master Hunter
  • *****
  • Posts: 3250
  • 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: I need minor help correcting some coding
« Reply #5 on: March 16, 2012, 11:42:06 AM »
0
How is the sprite set up? Are you using the built in hot detection? Did you set each image in the sprite to use it's own bounding area? If there's code involved post it so we can evaluate it and give you feedback.
"Stuff and things."

Offline TheouAegis

  • Amateur Auteur of GMvania
  • Master Hunter
  • *****
  • Posts: 1841
  • 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: I need minor help correcting some coding
« Reply #6 on: March 16, 2012, 09:22:15 PM »
0
The first reply you would have gotten from GMC would have been without a doubt, "We need to see your code." Inccubus, Esco and I can't help you at all if you don't post code.

But even without knowing your code, I can give you some insight on how to program the Skull Knight. First off, his sword is NOT A PART OF HIS SPRITE. Weapons are separate objects; the worst thing you can do is treat a weapon as part of the same sprite/object. For starters, it's a waste of memory, because the sprite needs to be larger to accommodate the extra width added by the sword. Also, some enemies deal more damage with their weapons than with their bodies (or vice-versa, as is the case with Axe Knights and Bone Skels). Second, it's easier to check for collisions with a sword if it's its own object, as opposed to checking the image_index of the Skull Knight. Download the latest release of GMvania (my Castlevania engine) from this forum and look at how the Sword Skel was handled. The Skull Knight attacks about the same way.
« Last Edit: March 16, 2012, 09:24:09 PM by TheouAegis »
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 Las

  • Vampire Hunter
  • ***
  • Posts: 475
  • Gender: Male
  • Whoa dude!what a horrible night for no beer.....
  • Awards 2016-02 Sprite Contest 1st Place
    • Awards
  • Likes:
Re: I need minor help correcting some coding
« Reply #7 on: March 26, 2012, 05:17:34 PM »
0
@TheouAegus i checked your latest cv3engine(ah i though i did anways),but i didn't see anything about  a sword skel just a regular skeleton. Do you have a more updated version i could view? Just figured i'd ask.

@ Corpsecrank, sorry i didn't get a chance to post a while back but i seen your post about something you did that was cool with candles.Yeah sounds cool man.  i'm looking into lightning effects at the moment which provide cool special effects.
« Last Edit: March 26, 2012, 05:20:39 PM by Las »

Taking Edward Scissorhands to a whole new level!

Offline reiko26

  • Hunter in Training
  • **
  • Posts: 72
  • Only at the Castle Gate...
    • Awards
Re: I need minor help correcting some coding
« Reply #8 on: June 16, 2012, 08:32:22 PM »
0
hey guys, las and I are having problems with having the left door shifting with the camera as it shifts to the left for left doors. we have the rightside working fine but we cant figure out how to make the same thing happen on the left. can someone help explain what we need to do in order to make it shift left please? :)

Offline TheouAegis

  • Amateur Auteur of GMvania
  • Master Hunter
  • *****
  • Posts: 1841
  • 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: I need minor help correcting some coding
« Reply #9 on: June 16, 2012, 08:51:56 PM »
0
I take it you're not using my Door Transitions scripts. If you are, the problem is you're using the wrong script. Since you're likely not using my door transitions, you will probably want to do what I did for my door transitions and make sure you have two different scripts for each direction. Don't try to use a universal script for both directions as that will seriously fuck with your head. Just make a script for moving to the right through a door and make another script for moving left through a door. Check which side of the door the player is on and use the proper script accordingly.

@LAS
The sword skeleton has been updated. I think I posted the code for it recently in my NES-Style Castlevania thread. Well, part of it. I didn't post the attacking (did that with a timeline).  The script for it though works for both custom engines and using hspeed. Make sure you guys aren't using direction/speed to move enemies. In a platformer there's no point in using anything other than hspeed and vspeed (this goes for diagonal movement too).
« Last Edit: June 16, 2012, 08:55:08 PM by TheouAegis »
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

Tags: