Search found 14 matches

by OdnsRvns
Mon Jun 15, 2015 6:43 pm
Forum: Support and Development
Topic: Text Input and Chat Box
Replies: 4
Views: 879

Re: Text Input and Chat Box

DeltaF1 wrote:This is looking really pretty!
Thanks. I wish my code was half as nice as it looks. I have some awesome ideas for the storyline but its all about me deciding to finish a project for once.
by OdnsRvns
Mon Jun 15, 2015 4:44 pm
Forum: Support and Development
Topic: Text Input and Chat Box
Replies: 4
Views: 879

Re: Text Input and Chat Box

Worked like a charm I didn't even know this was a love function.

Code: Select all

function love.textinput(t)
   if Settings['state'] == "PLAYING" then Player1['input'] = Player1['input'] .. t end
end
by OdnsRvns
Mon Jun 15, 2015 4:13 pm
Forum: Support and Development
Topic: Text Input and Chat Box
Replies: 4
Views: 879

Text Input and Chat Box

I'm in the beginning stages of making a chat box for my TextBased RPG. I thought I'd get some ideas on how to accomplish this task. Right now my thinking is is put the user text in a variable "Player1['input']" then when user hits enter Game parses the sentence and feeds back an answer and empties t...
by OdnsRvns
Sat Feb 21, 2015 11:08 pm
Forum: Support and Development
Topic: Quad Help
Replies: 4
Views: 732

Re: Quad Help

DaedalusYoung wrote:[wiki]Quad:getViewport[/wiki]?
Shit son this maybe exactly what I need. When I get home I'll try it out. I'm not sure how I missed the Wiki on this. Thank you very much.
by OdnsRvns
Sat Feb 21, 2015 9:16 pm
Forum: Support and Development
Topic: Quad Help
Replies: 4
Views: 732

Re: Quad Help

I'm not sure I explained myself very well. I want to get the values of q_display and set them to a variable.

q_display_x, q_display_y, q_display_w ect... this way i can always know how large the quad is I'm displaying. I'm going to use this for hitboxes/mouseovers/ect...
by OdnsRvns
Sat Feb 21, 2015 8:36 pm
Forum: Support and Development
Topic: Quad Help
Replies: 4
Views: 732

Quad Help

I have a list of quads for a small kids game. I wanted to know how would be the best way to pull out each variable in the quad and assign it to another variable. gr, down = love.graphics, love.keyboard.isDown q_state = 0 q_zero = gr.newQuad(0, 0, 128, 128, img.sprite:getDimensions()) q_one = gr.newQ...
by OdnsRvns
Mon Feb 02, 2015 8:03 am
Forum: Support and Development
Topic: Createing Endless Texture Background
Replies: 10
Views: 2372

Re: Createing Endless Texture Background

Thank you ref, this is exactly what I was looking for. Your example helped me understand what is going on in the code enough to figure it out. Much appreciated, thank you everyone.
by OdnsRvns
Sun Feb 01, 2015 5:42 am
Forum: Support and Development
Topic: Createing Endless Texture Background
Replies: 10
Views: 2372

Re: Createing Endless Texture Background

Ok I understand making the quad and repeating the image across the open window. My issue is as the player moves, I am moving the quad under him. How do I add and remove textures from the quad as needed to create a seem less world. Check out the .love file i edited for a better description. I'm tryin...
by OdnsRvns
Sat Jan 31, 2015 2:55 pm
Forum: Support and Development
Topic: Createing Endless Texture Background
Replies: 10
Views: 2372

Re: Createing Endless Texture Background

S0lll0s wrote:You can also use a screen-sized quad and set the wrap options to repeat.
How would I go about doing that.
by OdnsRvns
Sat Jan 31, 2015 2:44 am
Forum: Support and Development
Topic: Createing Endless Texture Background
Replies: 10
Views: 2372

Re: Createing Endless Texture Background

Azhukar wrote:Fraction your image into chunks, draw chunks based on intersection with drawn area.
Thanks can you walk me through how this works. I'm a new programmer so this is something I could use in other projects.