The Daily Click ::. Forums ::. Klik Coding Help ::. shoping help
 

Post Reply  Post Oekaki 
 

Posted By Message

willow



Registered
  26/11/2009
Points
  1
4th February, 2010 at 08:06:55 -

i want my charcter to enter shop. 1 move mouse over item item displayed and cost of item ive got this so no issue.

2 player has 100 coins player buys items money decreses no money left you cannot buy any more items.
where do i begin i have looked at the rpg inventory tutorial way to complicated for what i want plus i dont understand most of whats going on.

could you help with something simple please ?

thanks

 
n/a

Mkingy



Registered
  05/07/2003
Points
  4771

Box Blue
4th February, 2010 at 12:36:03 -

How are you retrieving the value of the object? Is it stored in the objects alterable values or another way?

also where is the amount of money the player has stored?

The basic idea I'd use is:-

> Mouse click on Item
> Player Money > Item cost

+Subtract Item cost from Player Money
+Add 1 to Item's Owned.

Just use whatever values/counters you're using for the item cost and player money accordingly.

Hope that helps





 
n/a
   

Post Reply



 



Advertisement

Worth A Click