Problem with turing
Author |
Message |
Dan
|
Posted: Sat Nov 30, 2002 6:38 pm Post subject: hummm bugy |
|
|
well as i side the game is very bugy for a lot of reasons, partly my flaute for messing up the title sytem and a big part the turing cant hadle it becuse it uses a lot of pics and stuff all at the same time.
the save thing needs some wrok in the game, i never relay perfted it becuse it was a year end thing for school and i stoped when i got it marked. there could be a nother file missing or sotming.
to get out of two keep going right then down then rihgt.
the game was never finshed so it is not that longe after you get out of town.
aculey i have only had it run persitice with no bugs a few times, this is becuse turing slowly will die becuse of the grapicks and some dum bugs on my part.
w/e how your game going? |
Computer Science Canada
Help with programming in C, C++, Java, PHP, Ruby, Turing, VB and more! |
|
|
|
|
Sponsor Sponsor
|
|
|
Dan
|
Posted: Sat Nov 30, 2002 6:43 pm Post subject: humm |
|
|
also if you cant figer out how to fixe the save progmel you can just try to set the save file back to what it was when you instaled it.
it shode look like this:
data.save:
code: |
20 20 1 0 0 0 1 0 1
0 0 0 0 0 0 0 0 0 0
|
this shode also tell you how to hack the game so you can have tones of hp, ect.
also i whode not remoned copying the sytem for lvl up in this game buces affter a few lvls it get relay unblacned.
well what can i say, it is just a beat test of a demo for the game i was planing on making in c/c++ |
Computer Science Canada
Help with programming in C, C++, Java, PHP, Ruby, Turing, VB and more! |
|
|
|
|
Tony
|
Posted: Sat Nov 30, 2002 8:43 pm Post subject: (No subject) |
|
|
To Dan (and others interested in RPG creation):
I'd recommend making an RPG in VB. First of all, its object oriented with lots of usefull features like Control Arrays. Most importanly, DataBase Access made easy.
Turing RPGs don't work out mostly because of amount of informaiton that's being loaded and very poor organization. A solid DataBase solves that problem.
You can write your own DLLs in C/C++ and import then into VB to have fast functions. Also VB has a much better graphics controls then C/C++ (unless you're using DirectX, where C++ has more power).
Good luck |
Tony's programming blog. DWITE - a programming contest. |
|
|
|
|
krishon
|
Posted: Sat Nov 30, 2002 11:29 pm Post subject: (No subject) |
|
|
now that my game is done and bug free so far, i'm deciding to make some sort of weapons shop. How could i make it so that it displays what item i have and how can i add it to my damage. A little example with code can help. |
|
|
|
|
|
Tony
|
Posted: Sun Dec 01, 2002 12:07 am Post subject: (No subject) |
|
|
i guess that depends on how you got it set up... I guess the easiest way is like this:
code: |
var weaponname : string
var weapondamage : int
procedure WeaponShop
put "You have ", weaponname, " that does ", weapondamage, " damage"
put "You can buy:"
put "1. Small Sword: 10 Dmg"
put "2. Large Sword: 15 Dmg"
put "3. Quit"
get answer
if answer = 1 then
cash:= cash - weaponprice(answer) %money handling
weaponname := "Small Sword"
weapondamage := 10
elsif
...
end if
put "Thx for shopping, come again"
end WeaponShop |
|
Tony's programming blog. DWITE - a programming contest. |
|
|
|
|
krishon
|
Posted: Sun Dec 01, 2002 12:20 am Post subject: (No subject) |
|
|
so, if i want to make the shop appear i would put it in an if statement right?? |
|
|
|
|
|
krishon
|
Posted: Sun Dec 01, 2002 12:21 am Post subject: (No subject) |
|
|
that is after a certain number of kills |
|
|
|
|
|
Tony
|
Posted: Sun Dec 01, 2002 12:43 am Post subject: (No subject) |
|
|
well usually weapon shops appear in towns.. but i guess it can be any condition. So
code: |
if CONDITION %came into town for example
then
Call WeaponShop
end if
|
|
Tony's programming blog. DWITE - a programming contest. |
|
|
|
|
Sponsor Sponsor
|
|
|
krishon
|
Posted: Sun Dec 01, 2002 12:55 am Post subject: (No subject) |
|
|
the only problem is that my rpg doesn't have moving characters. I saw Dan's rpg, which was very buggy (sry if this offends u Dan). So mines is just a menu wit the pics. So i wuz just thinking of like being able to access a shop after a certain number of kills. |
|
|
|
|
|
Tony
|
Posted: Sun Dec 01, 2002 2:14 pm Post subject: (No subject) |
|
|
Some people still play in MUGs (Multi User Dungeon) which are entirely text based. You move from room to room and each room has different options available. You can have weapon shop one of them so it can be accessed by a text menu in sertain "rooms" |
Tony's programming blog. DWITE - a programming contest. |
|
|
|
|
Dan
|
Posted: Sun Dec 01, 2002 7:01 pm Post subject: la la la |
|
|
no ofetes take about the bug comanet, as tony side thats the problem with rpgs in turing that have moviing guys and stuff. some times turing just cant take all the carp that you need to load.
well good luck with your rpg, may be you coude post it on the web or at least the exe file so others can take a look at it. |
Computer Science Canada
Help with programming in C, C++, Java, PHP, Ruby, Turing, VB and more! |
|
|
|
|
krishon
|
Posted: Mon Dec 02, 2002 1:23 pm Post subject: (No subject) |
|
|
my friend wants to know how to make buttons. Could u post the code for it here. It would be great, thx |
|
|
|
|
|
Dan
|
Posted: Mon Dec 02, 2002 8:07 pm Post subject: gui |
|
|
this is part of the gui fuctions in turing 3.1.1 (dont know about them in other virsosn).
1st at the very beging of your progame you need to load the gui modual.
code: |
import GUI in "%oot/lib/GUI"
|
this is the full code for the buttion:
code: |
import GUI in "%oot/lib/GUI"
var bt1: int %var for buttion
procedure btrun
%code that runs when bution is hit gose here
end btrun
%bution code
bt1 := GUI.CreateButtonFull (maxx div 2, maxy div 2, 0, "OK", btrun, 0, '^b', false)
%loop to keep the buttion wating for some one to hit it
loop
exit when GUI.ProcessEvent
end loop
|
ok this is how it wroks, the buttion needs an int and a procedure to run when it is hit. it also needs a loop to keep it procsoing the gui.
this is how the buttion code wroks
intforbuttion := GUI.CreateButtonFull (x quredent, y quroedent, length of buttion, buttion text, name of procdure, hitght of buttion, short key, false)
also if you put 0 for leghut or high of buttion it will aotouset it.
one more thing dont use it with full screen it will not wrok right |
Computer Science Canada
Help with programming in C, C++, Java, PHP, Ruby, Turing, VB and more! |
|
|
|
|
krishon
|
Posted: Sat Dec 07, 2002 12:31 pm Post subject: (No subject) |
|
|
another problem. I buy a weapon, but it bypasses allt he code for some reason. It subtracts the money but it does not say that i have the weapon! How can i fix it, i'll paste the code here:
code: | if weaponamazon = 1 then
moneyamazon := moneyamazon - 10000
if itemuseamazon = 1 then
put "You already have this weapon!"
moneyamazon := moneyamazon + 10000
delay (2000)
cls
elsif moneyamazon - 10000 >= 0 then
itemuseamazon := 1
put "You have bought the Eaglehorn Crusader Bow for $10000"
put "Your remaining funds is ", moneyamazon, "."
maxdamageamazon := maxdamageamazon + 50
mindamageamazon := mindamageamazon + 20
put "Your maximum damage is now ", maxdamageamazon, "."
put "Your minimum damage is now ", mindamageamazon, "."
delay (2000)
cls
elsif moneyamazon - 10000 < 0 then
moneyamazon := moneyamazon + 10000
put "You do not have enough money!!"
delay (2000)
cls
end if
elsif weaponamazon = 2 then
moneyamazon := moneyamazon - 15000
if itemuseamazon = 2 then
put "You already have this weapon!"
moneyamazon := moneyamazon + 15000
delay (2000)
cls
elsif moneyamazon >= 0 then
itemuseamazon := 2
put "You have bought Lycander's Aim Ceremonial Bow"
put "Your remaining funds is ", moneyamazon, "."
maxdamageamazon := maxdamageamazon + 60
mindamageamazon := mindamageamazon + 40
put "Your maximum damage is now ", maxdamageamazon, "."
put "Your minimum damage is now ", mindamageamazon, "."
delay (2000)
cls
elsif moneyamazon < 0 then
put "You do not have enough money!!"
delay (2000)
cls
end if
end if |
|
|
|
|
|
|
krishon
|
Posted: Sat Dec 07, 2002 12:32 pm Post subject: (No subject) |
|
|
sry about the alignment, it's a bit bad. also, a reply today would be very appreciated. thx |
|
|
|
|
|
|
|