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: NEED HELP WITH ZELDA GAME GM6 not reg  (Read 2102 times)

0 Members and 1 Guest are viewing this topic.
NEED HELP WITH ZELDA GAME GM6 not reg
« on: February 08, 2007, 02:02:38 am »
  • *
  • Reputation: +0/-0
  • Offline Offline
  • Posts: 51
Hi
Ok heres the deal. I have sprites of link in my game of just him, no shield. When link gets the shield, i want the shield to appear on his back. I don't want to make all new sprites for link with a shield on so is  there a way i can i have two sprites for one object. I tried making two objects but messes up.
If anyone has any idea please comment
thanks
~CJ~
« Last Edit: February 14, 2007, 07:38:55 pm by Fox »
Logged
~CJ






Chesu

Re: HELP WITH ZELDA GAME GM6 not reg
« Reply #1 on: February 08, 2007, 06:55:30 am »
Just have your control object draw the shield on him. Read the manual if you don't know how to do that.
Logged
Re: HELP WITH ZELDA GAME GM6 not reg
« Reply #2 on: February 08, 2007, 06:15:01 pm »
  • *
  • Reputation: +0/-0
  • Offline Offline
  • Gender: Male
  • Posts: 413
Just have a separate shield 'controller', or use Link and put code similar to the following in the Draw event:

Code: [Select]
{
    if (global.facingvariable="u") { draw_sprite(spr_shield_up,-1,x+4,y+4); }
    if (global.facingvariable="l") { draw_sprite(spr_shield_left,-1,x-2,y+2); }
    if (global.facingvariable="d") { draw_sprite(spr_shield_down,-1,x+4,y+16); }
    if (global.facingvariable="r") { draw_sprite(spr_shield_right,-1,x+2,y+2); }
}

OF course, this is just an example. You'd have to mess around with the x and y offsets.
Logged

Antidote

>.>
Re: HELP WITH ZELDA GAME GM6 not reg
« Reply #3 on: February 08, 2007, 07:09:10 pm »
  • In all seriousness who's serious?
  • *
  • Reputation: +0/-0
  • Offline Offline
  • Gender: Male
  • Posts: 1485
Just have a separate shield 'controller', or use Link and put code similar to the following in the Draw event:

Code: [Select]
{
    if (global.facingvariable="u") { draw_sprite(spr_shield_up,-1,x+4,y+4); }
    if (global.facingvariable="l") { draw_sprite(spr_shield_left,-1,x-2,y+2); }
    if (global.facingvariable="d") { draw_sprite(spr_shield_down,-1,x+4,y+16); }
    if (global.facingvariable="r") { draw_sprite(spr_shield_right,-1,x+2,y+2); }
}

OF course, this is just an example. You'd have to mess around with the x and y offsets.
inefficiant use a switch
Logged
  • Axiomatic Data Laboratories
Re: HELP WITH ZELDA GAME GM6 not reg
« Reply #4 on: February 08, 2007, 11:06:41 pm »
  • *
  • Reputation: +0/-0
  • Offline Offline
  • Gender: Male
  • Posts: 413
Gah, you kids and your switch statements. If I cared so much about efficiency over aesthetics, I wouldn't indent and add so much spaces :P
Logged
Re: HELP WITH ZELDA GAME GM6 not reg
« Reply #5 on: February 09, 2007, 02:14:33 am »
  • *
  • Reputation: +0/-0
  • Offline Offline
  • Posts: 51
thanks
 ???
OK
« Last Edit: February 09, 2007, 02:51:28 am by Jetsvaoe »
Logged
~CJ






Re: HELP WITH ZELDA GAME GM6 not reg
« Reply #6 on: February 14, 2007, 03:52:31 am »
  • *
  • Reputation: +0/-0
  • Offline Offline
  • Posts: 51
Still need help
 ???
Logged
~CJ






Re: HELP WITH ZELDA GAME GM6 not reg
« Reply #7 on: February 14, 2007, 10:15:53 am »
  • *
  • Reputation: +0/-0
  • Offline Offline
  • Gender: Male
  • Posts: 647
Why don't you go ahead and read the above posts?
Logged
Re: HELP WITH ZELDA GAME GM6 not reg
« Reply #8 on: February 14, 2007, 03:22:32 pm »
  • *
  • Reputation: +0/-0
  • Offline Offline
  • Gender: Male
  • Posts: 901
I just added it to a test of my Zelda game. Probably will be added to my official game later. What he says makes sense. Make an object that appears with a shield when a button is pressed. If he's facing up, down, left, or right, the shield will appear there.
Do you use variables in your GM games or are you new? No offense made there, but I remember a time when I didn't know a thing.
If you're new, you can't really run variables if they're not stated in the game itself. You must program them in for it to work.
Logged
Re: HELP WITH ZELDA GAME GM6 not reg
« Reply #9 on: February 14, 2007, 03:25:46 pm »
  • *
  • Reputation: +0/-0
  • Offline Offline
  • Posts: 51
I know how to use variables. So what should i do?
Thanks
Logged
~CJ






Re: HELP WITH ZELDA GAME GM6 not reg
« Reply #10 on: February 14, 2007, 03:27:45 pm »
  • *
  • Reputation: +0/-0
  • Offline Offline
  • Gender: Male
  • Posts: 901
Er... read what I said?
 >_<
Logged
Re: HELP WITH ZELDA GAME GM6 not reg
« Reply #11 on: February 14, 2007, 03:33:51 pm »
  • *
  • Reputation: +0/-0
  • Offline Offline
  • Posts: 51
If i do it what way, will the shield follow link when he moves, it looks like it will just appear when hes not moving.
Logged
~CJ






Antidote

>.>
Re: HELP WITH ZELDA GAME GM6 not reg
« Reply #12 on: February 14, 2007, 06:58:43 pm »
  • In all seriousness who's serious?
  • *
  • Reputation: +0/-0
  • Offline Offline
  • Gender: Male
  • Posts: 1485
Ah, but if you only go for aesthetics you'll have the slowest game in existence *plays pong*
EDIT:
just program it and test it >_<
« Last Edit: February 14, 2007, 07:08:49 pm by Antidote »
Logged
  • Axiomatic Data Laboratories
Re: NEED HELP WITH ZELDA GAME GM6 not reg
« Reply #13 on: February 15, 2007, 02:43:12 am »
  • *
  • Reputation: +0/-0
  • Offline Offline
  • Posts: 51
ok thanks
Logged
~CJ






Pages: [1]   Go Up

 


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



Page created in 0.23 seconds with 66 queries.

anything