## Search found 31 matches

Fri Jan 17, 2014 11:30 pm
Forum: General
Topic: [SOLVED]Positioning a image in another image(A weap in hand)
Replies: 11
Views: 4877

### Re: [SOLVED]Positioning a image in another image(A weap in h

Code: Select all

love.graphics.print("STAMINA: "..player.stamina,100,80)
You can use:

Code: Select all

love.graphics.print("STAMINA: "..math.floor(player.stamina),100,80)
This will return an integer instead of a double (or float).
Basically, this will get rid of the .<number>
Thanks for the tip
Wed Jan 08, 2014 11:48 am
Forum: General
Topic: The Global Game Jam
Replies: 23
Views: 5483

### Re: The Global Game Jam

On my city and others states of Brazil will occur this event, but I don't will participate, i don't have much experience programming and I don't have a team xDD
Tue Jan 07, 2014 9:22 pm
Forum: Games and Creations
Topic: squares - a casual game of dodge and collect [updated!]
Replies: 5
Views: 1569

### Re: squares - a casual game of dodge and collect

Nice game, i loved the song
Tue Jan 07, 2014 8:52 pm
Forum: General
Topic: [SOLVED]Positioning a image in another image(A weap in hand)
Replies: 11
Views: 4877

### Re: Positioning a image in another image (A weapon in a hand

Weapon position,player rotation and shooting solved, i'll put [SOLVED] on this post :ultrahappy: I created a simple stamina system, a simple bar of stamina and a zombie that follow the player. Now i gonna create a system that if zombie collide with player, he takes damage, and with time, new feature...
Tue Jan 07, 2014 4:21 pm
Forum: General
Topic: [SOLVED]Positioning a image in another image(A weap in hand)
Replies: 11
Views: 4877

### Re: Positioning a image in another image (A weapon in a hand

Solution 1: Trigonometry (if you want to do this, please tell us and we can give you some code or formulas) Solution 2: Change the image of the player, such that he is holding the bullet centered. From what I know, this is also more realistic, since the player would aim by looking over the iron sig...
Tue Jan 07, 2014 3:04 pm
Forum: General
Topic: [SOLVED]Positioning a image in another image(A weap in hand)
Replies: 11
Views: 4877

### Re: Positioning a image in another image (A weapon in a hand

You can draw the weapon on an image of the same size as the player (which would be mostly transparent) and set the origin coordinates to the same coordinates. If you keep the angle of both images the same, then the weapon will be perfectly aligned with the hand of the player. As micha said, create ...
Tue Jan 07, 2014 12:21 am
Forum: Games and Creations
Topic: Unnamed Zombie Game v0.06
Replies: 49
Views: 16727

### Re: Unnamed Zombie Game v0.05

I played the game, very nice xDDD
I see that have immortal zombies(or with much life) and the zombies occupies the same space from the player, they don't stop walking on reach the player.
Mon Jan 06, 2014 11:24 pm
Forum: General
Topic: [SOLVED]Positioning a image in another image(A weap in hand)
Replies: 11
Views: 4877

### [SOLVED]Positioning a image in another image(A weap in hand)

I want to make a very simple TDS (TOP-DOWN SHOOTER), and I want to position a weapon in the hand of player: http://www.schineider.hostei.com/tts/images/playertest.png The green cross Is the point(cross!!) where the player will rotate (I arealdy solved this xDDD) The red rectangle is where I want to ...
Mon Jan 06, 2014 4:58 pm
Forum: General
Topic: I'm new & need help :)
Replies: 7
Views: 1040

### Re: I'm new & need help :)

You are in luck, Lua was developed by Brazilians, I don't knew that language was created by brazilians xDDD, Now i know Sockmunkee have some 0.8.0 love tutorials (Click me!, I strongly recommend those) Eamonn have some 0.8.0 lua & love tutorials (Click me!) and finally Goature have some tutorials t...
Mon Jan 06, 2014 4:35 pm
Forum: General
Topic: I'm new & need help :)
Replies: 7
Views: 1040

### Re: I'm new & need help :)

Do you want to learn Lua or do you want to learn to program? Reading about the engine, i read this: "LÖVE is an *awesome* framework you can use to make 2D games in Lua..." To make games, I need to learn Lua,or the program uses a diferente language ? I'm a little confused ... :huh: Just to take some...