Hello Guest, please login or register.
Did you miss your activation email?
Login with username, password and session length.

Pages: [1]   Go Down

Author Topic: A question about a GB sword engine.  (Read 1271 times)

0 Members and 1 Guest are viewing this topic.

Koh

A question about a GB sword engine.
« on: September 01, 2006, 03:00:53 pm »
  • Tamer Koh
  • *
  • Reputation: +6/-0
  • Offline Offline
  • Gender: Male
  • Posts: 980
How do i code the sword so when its charged, it goes to the charged sprite and link walks around facing one direction until he releases the charged sword?
Logged
  • Megaclipse Games
Re: A question about a GB sword engine.
« Reply #1 on: September 01, 2006, 04:52:29 pm »
  • *
  • Reputation: +0/-0
  • Offline Offline
  • Gender: Male
  • Posts: 563
I have made and released a GB sword engine that you can find in the Zelda Engines Directory. But thats only for MMF users and I am assuming your a GM user..
Logged

I ♥ Open Girlfriend (What!? I didn't add this.. must have been Solly!)
  • My DevArt Account

Koh

Re: A question about a GB sword engine.
« Reply #2 on: September 01, 2006, 10:10:40 pm »
  • Tamer Koh
  • *
  • Reputation: +6/-0
  • Offline Offline
  • Gender: Male
  • Posts: 980
o yeah this is with GM6 byt the way...
Logged
  • Megaclipse Games

Koh

Re: A question about a GB sword engine.
« Reply #3 on: September 04, 2006, 11:53:43 pm »
  • Tamer Koh
  • *
  • Reputation: +6/-0
  • Offline Offline
  • Gender: Male
  • Posts: 980
i know someone knows, help me out here.
Logged
  • Megaclipse Games
Re: A question about a GB sword engine.
« Reply #4 on: September 05, 2006, 12:32:03 am »
  • *
  • Reputation: +0/-0
  • Offline Offline
  • Posts: 570
this is a toughy,even i dont know

Goodnight?
make an exemple!!!!!!!!!
pweeeeese?
Logged

Goodnight

Once and future Captain
Re: A question about a GB sword engine.
« Reply #5 on: September 05, 2006, 02:38:31 am »
  • With a Capital G
  • *
  • Reputation: +1/-0
  • Offline Offline
  • Gender: Male
  • Posts: 706
Hey look, people are depending on me!

* Goodnight gleams with pride 8)

Of course, I can't write a universal code that will work with every different movement system, but chances are that yours has these three things:
1) A variable that says whether or not you're charging the sword
2) A variable that keeps track of which way you're facing
3) A piece of code that changes the sprite depending on which way you're facing

First, add a condition before every line that changes the "facing" variable when you start moving, so that it only changes if you're NOT charging. That will keep Link facing the same direction.

Then go to the sprite-changing code and add some extra lines so that: if you ARE charging, use the sword-holding movement sprites, and if not, use the regular sprites.

And that is how we eat a turkey.
Logged

Koh

Re: A question about a GB sword engine.
« Reply #6 on: September 05, 2006, 09:39:12 pm »
  • Tamer Koh
  • *
  • Reputation: +6/-0
  • Offline Offline
  • Gender: Male
  • Posts: 980
??? can you make an engine instead, imessed up bigtime
Logged
  • Megaclipse Games

Goodnight

Once and future Captain
Re: A question about a GB sword engine.
« Reply #7 on: September 05, 2006, 09:50:39 pm »
  • With a Capital G
  • *
  • Reputation: +1/-0
  • Offline Offline
  • Gender: Male
  • Posts: 706
I can't just make an engine, for the same reason that I had to describe the steps instead of giving sample code.

Everybody sets up their game and movement systems using different methods, and the way to add features like this depends on what you've already got.

Maybe if you explain what you mean by messed up, and possibly show your current movement code, I can help fix it.
Logged
Re: A question about a GB sword engine.
« Reply #8 on: September 06, 2006, 10:10:41 pm »
  • Minalien
  • *
  • Reputation: +10/-1
  • Offline Offline
  • Gender: Female
  • Posts: 2119
And that's without mentioning the fact that if you cant program a sword-charging system on your own, perhaps your time would be better spent learning to use your language/program of choice (in this case, Game Maker) than trying to create a game using other peoples' works.
Logged
Quote
There's such a double standard about religion in the modern world. Catholics can gather, wear white robes, and say "In nomine Patris, et Filii, et Spiritus Sancti" and be considered normal.

But if my friends and I gather, wear black robes, and say  "Ph'nglui mglw'nafh Cthulhu R'lyeh wgah'nagl fhtagn", we're considered cultists.
  • Development Blog
Pages: [1]   Go Up

 


Contact Us | Legal | Advertise Here
2013 © ZFGC, All Rights Reserved



Page created in 0.022 seconds with 55 queries.

anything