Be a Supporter!

{ As2 } Shop

  • 295 Views
  • 3 Replies
New Topic Respond to this Topic
vogxhamraks
vogxhamraks
  • Member since: Aug. 8, 2009
  • Offline.
Forum Stats
Member
Level 08
Blank Slate
{ As2 } Shop 2010-08-03 09:19:12 Reply

Well im currently working on a game and i need some help on doing a shop i already know how to make a char purchase a thing but then when he buys it i dont know how to make it hold it or have it if it was for example ( hp, gun ammo, ability, etc...) so please help me by giving me a complete code of how to make a guy have this object while in game and i also need to know how to make it say sold out after buying it. Thanks in advance.

Montycarlo
Montycarlo
  • Member since: Mar. 14, 2005
  • Offline.
Forum Stats
Member
Level 24
Blank Slate
Response to { As2 } Shop 2010-08-03 09:28:02 Reply

At 8/3/10 09:19 AM, vogxhamraks wrote: Well im currently working on a game and i need some help on doing a shop

hmm ok.

so please help me by giving me a complete code

No. That's not helping. That's spoonfeeding.

There are a few ways to accomplish this. You can do it by drawing the art directly from the library, attaching it to the stage and aligning it to the correct position, or you might put them all in a single MovieClip instance inside the character graphic and change frames on that instance.


Although practicality beats purity.
Errors should never pass silently.
In the face of ambiguity, refuse the temptation to guess.

Innermike
Innermike
  • Member since: Sep. 11, 2009
  • Offline.
Forum Stats
Member
Level 14
Blank Slate
Response to { As2 } Shop 2010-08-03 10:08:20 Reply

lol


nobody

wagnerben
wagnerben
  • Member since: May. 27, 2007
  • Offline.
Forum Stats
Member
Level 11
Blank Slate
Response to { As2 } Shop 2010-08-03 10:19:10 Reply

At 8/3/10 09:19 AM, vogxhamraks wrote: Well im currently working on a game and i need some help on doing a shop i already know how to make a char purchase a thing but then when he buys it i dont know how to make it hold it or have it if it was for example ( hp, gun ammo, ability, etc...) so please help me by giving me a complete code of how to make a guy have this object while in game and i also need to know how to make it say sold out after buying it. Thanks in advance.

try attaching a movie clip to the character:
_root.character.attachMovie("gun", "gun_name", 1);

gun is the instance of the object
gun_name is the new instance name (you can leave it the same)
and 1 is the depth

hope this helps buuuuuddddyyy
=]


i like to have fun with the girls.

BBS Signature