Search found 30 matches

by uederson
Tue May 23, 2017 7:12 pm
Forum: General
Topic: [SOLVED]Touble When Saving Tables on Android
Replies: 6
Views: 4624

[SOLVED]Touble When Saving Tables on Android

Hi all! I'm working on a simple game. All the levels are made up from tables. I want let the player create levels and I need some way of save the created level as a table. I tried some libs to do it: Tserial I didn't was able to get it working on my code; from Ser I got a message saying my table is ...
by uederson
Tue May 23, 2017 3:41 am
Forum: General
Topic: [Solved]Help With Player Movement
Replies: 14
Views: 13311

Re: Help With Player Movement

Hi all! Bellow is a link to a little video showing how I am moving the player using the tips you guys gave me here!
https://drive.google.com/file/d/0BxWloK ... p=drivesdk

It moves 32 pixels each time I touch the directional arrows.

Thank you again! :)
by uederson
Wed May 17, 2017 2:37 am
Forum: General
Topic: [Solved]Help With Player Movement
Replies: 14
Views: 13311

Re: [Solved]Help With Player Movement

The easier way I found for a beginner programmer like me (following the tips airstruck gave me) was using math.min: function love.update(dt) if z == true then if x < y then x = x + math.min(vel * dt,32) else z = false end end end I don't know if this is the best way of solve the issue, but it worked...
by uederson
Wed May 17, 2017 1:08 am
Forum: General
Topic: [Solved]Help With Player Movement
Replies: 14
Views: 13311

Re: Help With Player Movement

The problem is that x will always overshoot y unless at the final step, vel*dt is exactly y-x, which would be extremely coincidental. Yes. This is what came to my mind. Thank you so much, friend! I dont know yet how to do the things you said, but with your tips (great tips) I know now what I need t...
by uederson
Tue May 16, 2017 5:23 pm
Forum: General
Topic: [Solved]Help With Player Movement
Replies: 14
Views: 13311

Re: Help With Player Movement

I see you don't intend on free movement, so try "snap" movement with linear interpolation for animation. Using your answer as basis, I found the gridlocked player tutorial. I'm checking it. Thank you so much! you x position is the integral of the velocity function, but you are doing integ...
by uederson
Tue May 16, 2017 12:16 pm
Forum: General
Topic: [Solved]Help With Player Movement
Replies: 14
Views: 13311

[Solved]Help With Player Movement

Hi all! I'm working on a little project for Android. When I realese a mouse button, I want the player character move 32 pixels and stop. I'm trying something like the code below (only a example): function love.load() x,y,z,vel = 0,0,false,100 end function love.update(dt) if z == true then if x < y t...
by uederson
Tue May 16, 2017 1:12 am
Forum: Games and Creations
Topic: LuaGB: A Gameboy Emulator written in Pure Lua
Replies: 13
Views: 14324

Re: LuaGB: A Gameboy Emulator written in Pure Lua

Great!
I'm here crashing my brain trying to create a little and simple game while someone is creating something so complex like that! :crazy:
Really great!
by uederson
Tue May 16, 2017 1:05 am
Forum: Games and Creations
Topic: LuaGB: A Gameboy Emulator written in Pure Lua
Replies: 13
Views: 14324

Re: LuaGB: A Gameboy Emulator written in Pure Lua

Great!
I'm here crashing my brain trying to create a little and simple game while someone is creating something so complex like this!
by uederson
Tue May 24, 2016 1:12 pm
Forum: Support and Development
Topic: Change Sprite Inside a Table
Replies: 2
Views: 1567

Re: Change Sprite Inside a Table

Great!!! I did not know I could just do yellow.img = blueImg hehe I was thinking I would need to update the image inside the table like with table.insert, and I tried a lot of ways to do it! The things are much clearer now in my mind! I made the "stones" in separate tables only in that exa...
by uederson
Mon May 23, 2016 9:13 pm
Forum: Support and Development
Topic: Change Sprite Inside a Table
Replies: 2
Views: 1567

Change Sprite Inside a Table

Hello guys! First of all sorry if there is some information in some place with the answer to my question. I'm trying to port my GMS game to Löve (you can see it on https://www.youtube.com/watch?v=mqYa4_Tw8UQ). I am making the stones through table. I know how to remove each stone from the table, but ...