Jump to content


AnDwHaT5's Content

There have been 255 items by AnDwHaT5 (Search limited from 10-February 22)


By content type

See this member's


Sort by                Order  

#130825 Starting rpg game project

Posted by AnDwHaT5 on 02 July 2013 - 02:36 PM in General

Thanks once i figure out how to make the walls which i made but dosnt work i will do a alpha release. Hmm how can i explain the walls without showing the whole code XD. I am trying to make it so if y ever = 1 then it wont let you go through. I do that by setting the pos to the current position and printing it again but it goes to the other side of the screen and if i hit up again it disappears. I will get it its just the walls are a huge issue right now.



#130803 Starting rpg game project

Posted by AnDwHaT5 on 02 July 2013 - 01:03 PM in General

Thanks the trick i am using for movement is it saving the coords your at. What i do is make a base coord then use math functions to build of of it. Then it saves the coord and recalls the term.setCursorPos. You must make a while true do in order to do this with key functions. Currently the coding i am using is a bit not advanced but i will advance it if need be. I prob will and make it into one file. Right now i have 2 files the base file and a file with coord data which is used with each movement. The entire free moving code was like 65 lines :D.



#130786 Starting rpg game project

Posted by AnDwHaT5 on 02 July 2013 - 12:35 PM in General

I will do my best!



#130577 Starting rpg game project

Posted by AnDwHaT5 on 01 July 2013 - 08:05 AM in General

Recently i have started a kind of rpg project. it looks cool right now and i have big big planes for it. Currently we have unrestricted movements which is good and bad. We don't have barriers yet but i am working on those now. The idea of the game is like a maze thing. You get to go around the map with teleporters and point boosters and decliners. With that yes! There is a point system and i might add health and if you hit a diff icon you lose health or gain it. When you lose to much health you die and start over. Not only that but currently the saving feature is added. It saves constantly your position in a config file that way you never lose your data. This may be a while because i hope to make it a legit game and a story line with multiple maps.


Currently added:
moving.
Saving.
Part 1 of map 1
colors.


Colors subject to change drastically. I will prob get cooler colors and get a outside background!

# = teleporters
% = spawn
^<>v = guy



More coming soon!


Screenies!
Spoiler



#130425 How to write and read a specific line

Posted by AnDwHaT5 on 30 June 2013 - 02:18 PM in Ask a Pro

Nvm i got it. Thank you.



#130417 How to write and read a specific line

Posted by AnDwHaT5 on 30 June 2013 - 01:48 PM in Ask a Pro

Ok i got that but it is ssaying that it expects a number. I dont need huge specifics in case of lines just to know line 1 is x and line 2 is y. But when i plug it in to the term.setCursorPos it says expecting number or something. It isnt using the variable. here is the current code.
local f = fs.open( "saves", "r")
b = f.readLine()
a = f.readLine()
f.close()
term.setCursorPos(b,a)
print("@")
while true do
local event, p1 = os.pullEvent("key")
if p1 == 200 then
a = y-q
term.setCursorPos(x,a)
local f = fs.open( "saves", "a")
f.writeLine(a)
f.writeLine(B)/>
f.close()
term.clear()
print("@")
end
end



#130394 How to write and read a specific line

Posted by AnDwHaT5 on 30 June 2013 - 11:58 AM in Ask a Pro

yes it can be 200 it is the up arrow and the code works fine right now i just need this info and i will be able to make a unlimited movment space.



#130371 How to write and read a specific line

Posted by AnDwHaT5 on 30 June 2013 - 10:09 AM in Ask a Pro

So i am making a rpg game and i am using s = fs.open("saves", "w"). I am putting in numbers for coords such as when i hit the up button or "200" as a raw key event it does some math on y taking away 1. What i want my program to do is write in the file saves being the first line as the x coord and the second line as the y coord and then the program reading that and then plugging that into the term.setCursorPos(a, B) a is the final version of y and b is the final version of x. I use them to do that math such as a = y+1 or b= x+1. That way variables dont get screwed up by using x and y.


Here is my current code.

q = 1
x = 5
y = 5
term.setCursorPos(x,y)
print("@")
while true do
local event, p1 = os.pullEvent("key")
if p1 == 200 then
a = y-q
term.setCursorPos(x,a)
s = fs.open("saves", "w")
s.write(a)
s.close()
term.clear()
print("@")
end
end

and the pastebin id is VR7L6vcK



#128864 How do i run a program over a wired modem to a monitor

Posted by AnDwHaT5 on 24 June 2013 - 12:17 PM in Ask a Pro

Ik that i wanted to run a program not just simple text. But i am fine now i made a relayer using a program sender to a computer next to the monitor then it is set to project the program onto the monitor. But if there is a simpler way someone please tell me.



#128850 How do i run a program over a wired modem to a monitor

Posted by AnDwHaT5 on 24 June 2013 - 12:01 PM in Ask a Pro

Sort of mine is wired modem. I am sure there is also a simpler way of doing it like that.



#128836 How do i run a program over a wired modem to a monitor

Posted by AnDwHaT5 on 24 June 2013 - 11:24 AM in Ask a Pro

I want to run a program on a monitor over a wired modem. So far no luck can anyone help me out? My goal is to use a input and with that input to locate the file and send it to the monitor and run it.



#102925 Great Way To Learn Different Coding Languages

Posted by AnDwHaT5 on 28 March 2013 - 03:58 PM in General

View PostKingdaro, on 26 March 2013 - 01:18 PM, said:

View PostAzhf, on 26 March 2013 - 01:06 PM, said:

I knew of this website, it's where I learned Java.
Java ~= Javascript.

And yeah, codecademy is pretty great, except for the fact that their Ruby backend is pretty crappy at times.

View PostLuaEclipser, on 26 March 2013 - 01:14 PM, said:

LUA if/else statment

if 1 + 1 = 2 then
syntax = true
else
syntax = flase

if 1 + 1 == 2 then
syntax = true
else
syntax = false
end

If you're going to make an example at least try to avoid syntax errors.
in a way it is but the main difference is java script is the code of the web where as java is mainly the code of the programs and desktop. Thats breaking it into simpler terms.

let me proclaim that i was referring to the javascript ~= java statement



#102687 Did you ever start talking in code

Posted by AnDwHaT5 on 28 March 2013 - 01:58 AM in General

Ok, so sometimes when im talking to my friends i slip and start talking parts of lua to him and he freaks out. Like elseif statements and other conditional statements. Once i accidentally talked in a I/O format Have anyone else done this on accident?



#101646 @inc-downloader for all @inc-programs

Posted by AnDwHaT5 on 25 March 2013 - 12:22 PM in Programs

fixed ... again and also it seems to download the html code of the site or at least thats what happened to me may times.



#101644 @inc-downloader for all @inc-programs

Posted by AnDwHaT5 on 25 March 2013 - 12:18 PM in Programs

View PostEngineer, on 24 March 2013 - 04:04 AM, said:

Unknown pastebin ID!
I just got the same error again. Hmm i will fix for the third time wow pastebin hates me!



#101643 Need permission for modpack: ASTU, CClights, Immibis's peripheral, MiscPe...

Posted by AnDwHaT5 on 25 March 2013 - 12:15 PM in Peripheral Help and Discussion

All this does is add spam to the forums and something like this should not be posted. In fact to make sure it dies it should be locked. Pm the creators.



#101640 Guess That Color!

Posted by AnDwHaT5 on 25 March 2013 - 12:06 PM in Programs

View PostSuicidalSTDz, on 25 March 2013 - 10:23 AM, said:

View Postoeed, on 25 March 2013 - 10:12 AM, said:

So this is basically like rolling a 12 sided dice and hoping for the best, or am I mistaken?
You are exactly right! ^_^ The point is not so much the game, but to show new users what they should try to make instead of graphical shells...
This is a great idea and may reduce wanna be OS programs!.



#101638 Auto Updater! V1.2

Posted by AnDwHaT5 on 25 March 2013 - 12:02 PM in Programs

Here this is a simple program i will fix your errors if the code is as i think it is. I can also set it to update every time the startup file is launched and i can make it to perm update something all the time. Or when command is used up updates programs through a config file.



#101635 Corrupt-A-Wish!

Posted by AnDwHaT5 on 25 March 2013 - 12:00 PM in Forum Games

View PostAnDwHaT5, on 25 March 2013 - 10:05 AM, said:

View PostHellkid98, on 25 March 2013 - 10:03 AM, said:

Granted, You will instead lose time for everything else.
I wish that the next one who posts will get completly rageful.

[OutOfGame]
Poor SSTDz won't get a cookie :(
[/OutOfGame]
Freaking granted i freaking hate this but its only for a second.
i wish ninjas would stop!
Remember use the ninjas as next material or i will have to respond to myself to get game going.



#101602 Corrupt-A-Wish!

Posted by AnDwHaT5 on 25 March 2013 - 10:28 AM in Forum Games

View PostSuicidalSTDz, on 25 March 2013 - 10:25 AM, said:

View PostMysticT, on 25 March 2013 - 09:59 AM, said:

Granted, but the cookie monster will eat SuicidalSTDz instead
Damn..
(gasps) your alive!!!!!



#101598 [1.2/1.3/1.4]Redworks Addon

Posted by AnDwHaT5 on 25 March 2013 - 10:24 AM in Programs

It was good for its time



#101591 [CC1.5]ComputerCraft Emulator V0.57 (February 19th)

Posted by AnDwHaT5 on 25 March 2013 - 10:09 AM in APIs and Utilities

Here is a suggestion. Lets be even more realistic and add rednet and the new cables!!! Even turtles! Add then as a addon and the commands will act as so.



#101588 Corrupt-A-Wish!

Posted by AnDwHaT5 on 25 March 2013 - 10:05 AM in Forum Games

View PostHellkid98, on 25 March 2013 - 10:03 AM, said:

Granted, You will instead lose time for everything else.
I wish that the next one who posts will get completly rageful.

[OutOfGame]
Poor SSTDz won't get a cookie :(
[/OutOfGame]
Freaking granted i freaking hate this but its only for a second.
i wish ninjas would stop!



#101566 Corrupt-A-Wish!

Posted by AnDwHaT5 on 25 March 2013 - 09:36 AM in Forum Games

View PostShnupbups100, on 25 March 2013 - 09:32 AM, said:

FROM HELLKID98

Granted, you just did.

I wish that I didn't have to go to school.



(AnDwHaT5, you're not playing right.)
How am i not doing it right refer to post before stupid post. Ahh you just hating that you cant swim underwater and breath also your not doing it right your supposed to do it to mine.

granted but you have to do extra work at home.

I wish i had a wish



#101563 Corrupt-A-Wish!

Posted by AnDwHaT5 on 25 March 2013 - 09:33 AM in Forum Games

View PostMudkipTheEpic, on 25 March 2013 - 05:18 AM, said:

Granted, but they are on fire.

I wish that someone would look at my post in King of the Hill.
THESE BOOKS ARE ON FIRE!!!!!!!!