Jump to content
  • Advertisement
NeroGame

In game shop

This topic is 534 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

hey everyone!

so im trying to create an in game shope to spend the in game currency and i want the kind of shop that when you touch the skin you unlock it and select it (i've tried several ways didnt work only with a button :/ ) so can anyone please help

Share this post


Link to post
Share on other sites
Advertisement
3 hours ago, NeroGame said:

 

hey everyone!

so im trying to create an in game shope to spend the in game currency and i want the kind of shop that when you touch the skin you unlock it and select it (i've tried several ways didnt work only with a button :/ ) so can anyone please help

 

What engine and can you show us what setup you have now?

 

By skin I assume you mean textures you are selling, and as such I will just call it the item.

The simplest way to do this would be to check if the mouse X and Y is over the item when clicked. Same as with any button.

 

If you are using a engine you should have some events for this. I will be able to provide better info when I know what you are using.

 

Edit: I now see the Unity tag.

Just make the Skin a Unity button, that way it will work the same.

If the skin is on a 3D object as a display, use a ray cast.

Edited by Scouting Ninja

Share this post


Link to post
Share on other sites
7 hours ago, NeroGame said:

i've tried several ways

What have you tried?

Are you able to get a button that does anything working in Unity? If yes, what specifically about the shop/unlock problem are you stuck on?

Share this post


Link to post
Share on other sites

Im using unity and im developping for android !

and for the button i tried one that unlock and set but thats not what i want i want that when the player tap the screen the skin is bought and equipped

Share this post


Link to post
Share on other sites
9 minutes ago, NeroGame said:

i tried one that unlock and set but thats not what i want i want that when the player tap the screen the skin is bought and equipped

What is the difference between "unlock and set" vs "bought and equipped"?

Share this post


Link to post
Share on other sites
7 minutes ago, NeroGame said:

nothing really same thing dont know why i said it like that but its the same

So again, what did you actually try?

Did you try something and it didn't work? If so, what did you try and what about it didn't work?

Or did you not try anything, you just not know where to start?

Share this post


Link to post
Share on other sites
12 minutes ago, NeroGame said:

i dont know how to start how to link between the screen touch and the unlock/set thing

So let's start from the very beginning: Do you know how to create a button in Unity which calls a script function?

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!