Search found 28 matches
- Sat Oct 16, 2010 4:01 am
- Forum: Support and Development
- Topic: Attempt to perform Arithmetic on Global var
- Replies: 3
- Views: 4719
Attempt to perform Arithmetic on Global var
hi gurus, seeking for help on basic lua runtime error Attempt to perform Arithmetic on Global 'my_variable' Code function createLandObject() love.graphics.print("distance " .. vecX, vecX, 10) temp = temp + 1 temp = vecX if temp >= 300 then temp2 = temp love.graphics.print("create obje...
- Thu Oct 14, 2010 5:04 am
- Forum: Support and Development
- Topic: Request for Camera Example in Love
- Replies: 10
- Views: 3053
Re: Request for Camera Example in Love
hi all, Thanks for all the guiding, I am actually come from 3D Game Authoring Software like Shiva Engine, Blender So, what i know bout Camera Zoom in, is while we put object to screen, we define their X, Y (2D), or X, Y, Z (3D) Then in order to SEE the object, we need to define a Camera Object, same...
- Wed Oct 13, 2010 3:10 pm
- Forum: Support and Development
- Topic: Love Remove Image command Request
- Replies: 13
- Views: 5585
Re: Love Remove Image command Request
Yup walesmd,
That's what i am looking for! Thanks pal!
moreover, in order to chose which one to be remove, we can specify second optional param
where 2 is the object we wanna remove from screen
That's what i am looking for! Thanks pal!
moreover, in order to chose which one to be remove, we can specify second optional param
Code: Select all
elseif key == "b" and #balls > 0 then
table.remove(balls, 2)
end
- Wed Oct 13, 2010 9:03 am
- Forum: Support and Development
- Topic: Love Remove Image command Request
- Replies: 13
- Views: 5585
Re: Love Remove Image command Request
hi kikito, Thanks for the reply and yes, i am still new bird who in love i jz figure out this yday night * love.draw is a function that gets called once per frame i jz know this after reading this post * Before calling it, L?VE erases the screen completely regarding the function below function love....
- Wed Oct 13, 2010 6:18 am
- Forum: Support and Development
- Topic: Love Remove Image command Request
- Replies: 13
- Views: 5585
Re: Love Remove Image command Request
Instead of removing it, you need to stop drawing it, so you probably want an if in your love.draw. any sample? isn't that better for every image object created, will be assign to a variable Eg. logic myObjRef[1] = love.graphics.draw(image, imgx, imgy) love.graphics.stopDraw(myObjRef[1] ) Let say if...
- Wed Oct 13, 2010 3:33 am
- Forum: Support and Development
- Topic: Love Remove Image command Request
- Replies: 13
- Views: 5585
Love Remove Image command Request
i have drawn 3 images, code below function love.draw() -- draw image love.graphics.draw(arrow, 100, 200, math.rad(arrow_rotate_angle), 1, 1, 75, 200) love.graphics.draw(arrow, 200, 200, math.rad(arrow_rotate_angle), 1, 1, 75, 200) love.graphics.draw(arrow, 300, 200, math.rad(arrow_rotate_angle), 1, ...
- Tue Oct 12, 2010 1:14 pm
- Forum: Support and Development
- Topic: Scroll Tile Infinity times for a platform game
- Replies: 7
- Views: 1920
Re: Scroll Tile Infinity times for a platform game
hi nevon, thanks for the reply but correct me if i am wrong.
there is no pause function provided in the framework?
there is no pause function provided in the framework?
- Tue Oct 12, 2010 1:33 am
- Forum: Support and Development
- Topic: Scroll Tile Infinity times for a platform game
- Replies: 7
- Views: 1920
Scroll Tile Infinity times for a platform game
I am planning to design a 2D distance game, which is someone hit a ball and see how far the ball can goes But the thing is, in order to make the ball move, - should i make the ball static and scroll the background? - or should the camera follow the ball and the ball move after force applied which on...
- Mon Oct 11, 2010 2:27 pm
- Forum: Support and Development
- Topic: Request: Physic configuration template for different objects
- Replies: 11
- Views: 3049
Re: Request: Physic configuration template for different obj
Sorry guys,
i dont mean to open a physic class here but to enquire any available, i mean tested planet simulation
So that a 500g basket ball can bounce like it suppose to be, a 3kg stone will not bounce, and a 1kg wooden box can bounce but not as high as the basket ball
i dont mean to open a physic class here but to enquire any available, i mean tested planet simulation
So that a 500g basket ball can bounce like it suppose to be, a 3kg stone will not bounce, and a 1kg wooden box can bounce but not as high as the basket ball
- Mon Oct 11, 2010 9:48 am
- Forum: Support and Development
- Topic: Request: Physic configuration template for different objects
- Replies: 11
- Views: 3049
Re: Request: Physic configuration template for different obj
Correct me if I'm wrong, but I thought gravity is specified in Newton and mass in KG anyway. :) Erm... i have throw back the knowledge to my physic teacher. But if i am going to apply physic to my game, i really need to catch up my physic and maths more important is, i would like to know any availa...