Search found 36 matches

by icekiller8002
Tue Sep 10, 2019 9:21 pm
Forum: Games and Creations
Topic: Snake Game
Replies: 1
Views: 1883

Snake Game

i made a simple snake game because why not ¯\_(ツ)_/¯

feel free to look at the source code and give me constructive criticism!
by icekiller8002
Fri Jun 14, 2019 7:16 pm
Forum: Support and Development
Topic: (Math Help) How do I round to the nearest 50?
Replies: 2
Views: 1627

(Math Help) How do I round to the nearest 50?

I.E. 23 = 0 27 = 50 56 = 50 79 = 100 122 = 100 143 = 150 178 = 200 994 = 1000 Basically, if the last two digits are closer to 100, then it rounds it to 100. Otherwise, if the last two digits are closer to 50, then it rounds it to 50. Or if the last two digits are closer to zero, then it rounds it to...
by icekiller8002
Fri Jun 07, 2019 6:33 pm
Forum: Support and Development
Topic: [SOLVED] Dialog doesn't work on signs (I have no clue lmao)
Replies: 1
Views: 964

[SOLVED] Dialog doesn't work on signs (I have no clue lmao)

I'm trying to make an interactive system with signs by loading the sign text data from a .dat file. It seems to work only once, but after the first interaction, it doesn't work. I used some prints to debug this, and the issue is on this line: ttxt[ntxt] = ttxt[ntxt]:sub(5) This line is not only sett...
by icekiller8002
Fri May 31, 2019 5:28 pm
Forum: Support and Development
Topic: [SOLVED] I have no clue why, but my function only accepts integer numbers, not variables
Replies: 3
Views: 2102

Re: I have no clue why, but my function only accepts integer numbers, not variables

pgimeno wrote:
Fri May 31, 2019 5:25 pm
tempd is a string. In Lua, "3" does not equal 3, therefore none of the comparisons in autoMove() matches.
so i just have to simply use tempd = tonumber(d)?

EDIT: i tried it, and it worked. thanks! :awesome:
by icekiller8002
Fri May 31, 2019 5:17 pm
Forum: Support and Development
Topic: [SOLVED] I have no clue why, but my function only accepts integer numbers, not variables
Replies: 3
Views: 2102

Re: I have no clue why, but my function only accepts integer numbers, not variables

update: i found out that when I use autoMove(tempd), it sets moving to true and it plays the movement animation, but it doesn't move the character. i have no clue why, because pl.d is equal to 3, but it's just not moving the player :huh:
by icekiller8002
Fri May 31, 2019 4:39 pm
Forum: Support and Development
Topic: [SOLVED] I have no clue why, but my function only accepts integer numbers, not variables
Replies: 3
Views: 2102

[SOLVED] I have no clue why, but my function only accepts integer numbers, not variables

entdata = {1,0,6,3} -- a is the room number, b and c are the x and y coordinates for the next room, d is the direction (3 is right) local a,b,c,d = entdata[transport][1],entdata[transport][2],entdata[transport][3],entdata[transport][4] tempd = d loadMap(a,b,c,d) -- i use local variables because the...
by icekiller8002
Mon Aug 06, 2018 7:45 pm
Forum: Games and Creations
Topic: Improved Collision Test Game
Replies: 4
Views: 1921

Re: Improved Collision Test Game

Darlex wrote:
Mon Aug 06, 2018 3:20 am
Image
*Cough cough* That was a bad joke... sorry
despite this post being really old, i lol'd so hard at that. good job. :crazy:
by icekiller8002
Thu Aug 02, 2018 9:20 pm
Forum: Games and Creations
Topic: draw crud
Replies: 0
Views: 1196

draw crud

i made a short and simple test game that allows you to draw. here are all of the controls: left click to draw right click to erase < (,) and > (.) to decrease/increase brush size spacebar to toggle color changer up and down arrows (in color changer) to change to red, green, or blue left and right ar...
by icekiller8002
Tue Jul 31, 2018 7:58 pm
Forum: Games and Creations
Topic: 2D platformer
Replies: 4
Views: 2730

Re: 2D platformer

Ekamu wrote:
Thu Jul 26, 2018 9:42 am
how do you jump?
sorry for the really late reply. i did not implement jumping, as i couldn't get it to work without collision bugs. so i added ladders to replace jumping.
by icekiller8002
Thu Jul 05, 2018 7:48 pm
Forum: General
Topic: [solved] is there a better way to code this?
Replies: 3
Views: 1186

[solved] is there a better way to code this?

i am trying to remove blocks in these three coordinates. this is the best working solution i came come up with: for x,b in ipairs(blocks) do if (b.tx == 99 or b.tx == 101 or b.tx == 103) and b.ty == 11 then table.remove(blocks,x) end end for y,c in ipairs(blocks) do if c.tx == 101 and c.ty == 11 the...