Ir para conteúdo

Welcome to Wemakeagame - Fórum ©
Register now to gain access to all of our features. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, post status updates, manage your profile and so much more. If you already have an account, login here - otherwise create an account for free today!

Toggle shoutbox Shoutbox Open the Shoutbox in a popup

Regras do Shoutbox
Flood {mensagens seguidas}: Não há limites, mas evitem poluir o shout.
Links: Proibido links de outros sites, a não ser de tópicos, vídeos no fórum e vídeos do canal dentro de spoilers.
Conversas: Se tiver duvidas sobre projetos, script e modelagem etc, abra um tópico na área desejada e aguarde ser respondido.
Somente é permitido links de imagens com o link direto, se tiver com sites de blogs será removido.
Vídeos: Somente videos relacionados ao assunto do momento no shout e dentro de spoilers.
Spam: Mensagens sem sentido, excesso de emoticons, fontes de tamanho exagerado, repetição de mensagens iguais.
Banimento: Postagens de links com conteúdo pornográfico, mensagens ofensivas (palavrões),mensagens preconceituosas, acarretará em avaliação do moderador e pode causar expulsão do fórum..

-- [ Converse a vontade, mais cumprindo as regras acima. ]--

@  maozao : (22 julho 2018 - 08:00 ) Se puderem dar uma olhada em meu tópico sobre estrutura de servidor e opinarem agradeço :)
@  Afonso0606 : (22 junho 2018 - 10:42 ) como fasso para o raycast colidir em todos os lados x y z?
@  Matrirxp : (25 maio 2018 - 01:25 ) faz um topico
@  andarilho ro... : (25 abril 2018 - 01:44 ) Abaixo, deixarei o meu script no caso de alguém me ajuda:


using UnityEngine;
using System.Collections;

public class PlayerStatsController : MonoBehaviour {

public static PlayerStatsController intance;

public int xpMultiply = 1;
public float xpFirstLevel = 100;
public float difficultFactor = 1.5f;

// Use this for initialization
void Start () {
intance = this;
DontDestroyOnLoad (gameObject);
Application.LoadLevel ("GamePlay");

}

// Update is called once per frame
void Update () {
if (Input.GetKeyDown (KeyCode.A))
AddXp (100);
if (Input.GetKeyDown (KeyCode.R))
PlayerPrefs.DeleteAll ();
}

public static void AddXp(float xpAdd){
float newXp = (GetCurrentXp()+xpAdd)*PlayerStatsController.intance.xpMultiply;
while (newXp >= GetNextXp ()) {
newXp -= GetNextXp ();
AddLevel ();

}

PlayerPrefs.SetFloat ("currentXp", newXp);

}
public static float GetCurrentXp(){
return PlayerPrefs.GetFloat ("currentXp");
}

public static int GetCurrentLevel (){
return PlayerPrefs.GetInt ("CurrentLevel");
}

public static void AddLevel (){
int newLevel = GetCurrentLevel()+1;
PlayerPrefs.SetInt("currentLevel", newLevel);
}

public static float GetNextXp(){
return PlayerStatsController.intance.xpFirstLevel*(GetCurrentLevel ()+1)*PlayerStatsController.intance.difficultFactor;
}

void OnGUI(){
GUI.Label (new Rect (0, 0, 100, 50), "Current Xp = " + GetCurrentXp ());
GUI.Label (new Rect (0, 15, 200, 50), "Current Level = " + GetCurrentLevel ());
GUI.Label (new Rect (0, 25, 200, 50), "Current Next Xp = " + GetNextXp ());

}
}
@  andarilho ro... : (25 abril 2018 - 01:43 ) Criei todo o script certinho e mesmo assim o, ao apertar a tecla "A" (na qual o personagem recebe Xp) o Level não sobe...posso ficar apertando para receber Xp e mesmo assim o level não modifica, fica no 0
@  andarilho ro... : (25 abril 2018 - 01:41 ) Olá pessoal, estou acompanhando a serie "Criando um RPG na UNITY", os primeiros vídeos se tratam sobre Level,Xp e Hp do personagem e ai que está o meu problema...
@  Ɲɨƈk Đɨąʂ : (17 abril 2018 - 10:30 ) http://forumwmag.com...enhador-rápido/
@  Ɲɨƈk Đɨąʂ : (17 abril 2018 - 06:00 ) Boa tarde pessoal, que bom que o forum está voltando, estou terminando um GDD e ainda essa semana estarei criando um tópico pra podermos trabalhar, é bem simples e muito divertido.
@  LeonTrotski : (16 abril 2018 - 12:23 ) Agradeço ao Paulo do Wemakeagame por ajudar muito no canal dele falar sobre emprego na área de programação.
@  Guilherme Rohr : (07 abril 2018 - 11:01 ) ta em MODELAGEM, Blender, Tutoriais, Pedidos
@  Guilherme Rohr : (07 abril 2018 - 11:00 ) pode colocar o topico [Duvida] Duas Animações ao mesmo tempo como resolvido, ja me ajudou
@  Guilherme Rohr : (07 abril 2018 - 10:57 ) obrigado, teus vídeos tem me ajudado muito msm
@  wemakeagame : (05 abril 2018 - 04:45 ) mas de fato esse é um bug, eu vou resolver isso numa proxima live
@  wemakeagame : (05 abril 2018 - 04:45 ) é por que antes de adicionar o item ele não ta verificando a quantidade antes de adicionar
@  Guilherme Rohr : (04 abril 2018 - 08:16 ) Se eu largo um item com o amount 2, pego outro item do mesmo tipo e volto a pegar o item com amount 2, ele adiciona só 1 ao inves de 2
@  Guilherme Rohr : (04 abril 2018 - 08:15 ) no inventario do criando um rpg eu fiquei com um bug q n consegui resolver nem achei onde eu errei no video
@  Guilherme Rohr : (04 abril 2018 - 08:13 ) eae
@  wemakeagame : (03 abril 2018 - 04:06 ) serve sim brother
@  keivy : (01 abril 2018 - 05:27 ) @wemakeagame o Game Controller criado no tutorial do Mago 2D, tbm serve para o jogo de RPG?
@  wemakeagame : (30 maro 2018 - 08:33 ) ja ensinei a fazer um monte de menu no canal brother :)

Tópico de Ajuda: Personal Messenger


The personal messenger can be used to have private conversations with other members. To access it, select your username while logged in from the top corner of any page, and then press "Messenger".


Managing conversations

Change which conversations you are viewing
By default, all conversations are shown, but you can change the view to only display conversations you started, or conversations that others have started. To change this, select the appropriate option from the dropdown underneath the conversation list and then press Update.

Deleting conversations
To delete a whole conversation, select the checkbox beside the conversation, then select "Delete" from the dropdown at the bottom and then press Go.

If you started the conversation, this will remove the conversation from your list, and lock it for everyone else - nobody else will be able to make replies to the conversation, but they will still be able to read it until they also delete it.

If you did not start the conversation, this will remove the conversation from your list and remove you from the conversation - you will not be able to make any more replies, but others will still be able to continue the conversation without you, and see your previous replies.

Managing notifications
You will see a icon for conversations that you will be notified of updates to, and for conversations that you will not receive notifications for.

To turn on or off notifications for any conversation, select the checkbox beside the conversation, then select the appropriate option from the dropdown at the bottom and then press Go.


Managing messages
To edit or delete one of your messages in a conversation, press the " Edit" or " Delete" button underneath the post. The changes will be reflected to all participants in the conversation.


Starting a new conversation
To start a new conversation, start by pressing the "Compose New" button. Enter the user's name into the "Recipient's Name" field. As you type, suggestions will appear below the box. When you see the member you are looking for, click on their name.

You may also be able to add other recipients into the "Other Recipients" box. If so, the next option allows you to specify how the messages will be sent to alternate recipients: "Invitation" allows all invited members to participate in a single conversation, while "Copy" will send a separate conversation to each member.

You should then type a message subject and the message body, just like you would for a new topic in the forums.

When you are done, you can press Send Message or Save (Send Later) to save the message for later.


Replying to a conversation
To reply to any conversation, press the " Add Reply" button when viewing it or press the " Reply" button underneath any existing message to quote it. Then type your message just like you would a post and press Send Message. You can also use the Fast Reply box at the bottom of each conversation to quickly reply to the conversation.


Adding participants to a conversation
You may be able to add more participants to a conversation. If so, you will see an " Add" button on the left-side when viewing a conversation.
Click this button and a box will appear for you to enter member names into. To add more than one member, separate their names with commas. When you are done, press Add.


Reporting a message
If you wish to report to a moderator a message that someone has sent to you, you can press the " Report" button underneath the message.

Type in your report and then press Submit Report. This will send a copy of the message to the moderators - only the specific message you report will be displayed to the moderating team, however some moderators may be able to add themselves to the conversation you have reported.


Managing your messenger folders
By default there are three folders for messages:
  • New, which stores all unread conversations.
  • My Conversations, which contains all conversations you are participating in.
  • Drafts, which stores unsent messages saved for later.


You can also add your own folders to make it easier to manage your messages.

Adding a new folder
To add a new folder, press the " Add" button beneath the list of folders.
Type the name of the folder you want to add, then press the "+" button.

Moving messages
To move a message from one folder to another, select the checkbox beside the conversation, then select the name of the folder you want to move the conversation to from the dropdown at the bottom and then press Go.

Renaming, Deleting or Emptying a folder
To rename, empty or delete a folder, press the " Edit" button beneath the list of folders.

To rename a folder, type the new name in the textbox currently containing the folder name, and then press the ">" button. You cannot rename default folders.

To empty a folder, press the icon beside the folder name.

To delete a folder, press the icon beside the folder name. Be careful as this will also empty the folder. You cannot delete default folders.