Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 Hey,can anyone help me?
Index -> Programming, Turing -> Turing Tutorials
View previous topic Printable versionDownload TopicRate TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
LeVnteen




PostPosted: Thu Nov 23, 2017 9:10 am   Post subject: Hey,can anyone help me?

I am trying to make a game in which you can level up but i cant seem to get it,i want it so that when you get a certain amount of exp,your stats go up?How would i be able to do this?
var usera : int
var userd : int
var userl : int
usera:=15
userd:=20
userl:=30
Sponsor
Sponsor
Sponsor
sponsor
LolADuck




PostPosted: Tue Dec 12, 2017 12:33 pm   Post subject: RE:Hey,can anyone help me?

exp:int:=0

var usera : int :=15
var userd : int :=20
var userl : int :=30
%have exp go up when a task is complete (depends on game
if exp= 300 then%when exp reaches a certain amount have stats go up
usera+=15
userd+=20
userl+=30
end if
TokenHerbz




PostPosted: Wed Dec 13, 2017 12:08 am   Post subject: RE:Hey,can anyone help me?

@MODS: please move this post to the correct topic.
Display posts from previous:   
   Index -> Programming, Turing -> Turing Tutorials
View previous topic Tell A FriendPrintable versionDownload TopicRate TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 3 Posts ]
Jump to:   


Style:  
Search: