Search found 89 matches

by IAsep-TrixI
Wed Sep 30, 2015 11:37 pm
Forum: Support and Development
Topic: How to change gamestates pressing R and particle cleanup
Replies: 1
Views: 596

How to change gamestates pressing R and particle cleanup

SORRY IN ADVANCED FOR NOT USING .LOVE, FOR SOME REASON IT DOESN'T WORK USING .LOVE ALSO SORRY FOR HAVING SUCH MESSY CODE. I've been trying to make a space invader like game for practice, but for some reason, when I enter the gameover gamestate, I cant change back to the playing gamestate when i pres...
by IAsep-TrixI
Tue Apr 08, 2014 11:33 pm
Forum: Support and Development
Topic: How to check if 2 keys are down?
Replies: 9
Views: 930

How to check if 2 keys are down?

I noticed that my player goes vertical if holding A and D, now i want to change the characters picture to a vertical picture if the 2 keys are down, but how do i detect if the 2 are down?
by IAsep-TrixI
Thu Nov 21, 2013 1:24 am
Forum: Support and Development
Topic: Love2D Beginner Tutorials (Video Series)
Replies: 0
Views: 611

Love2D Beginner Tutorials (Video Series)

I have been working on some love2d beginner tutorials, I will be posting the whole series on this one page, hope this helps some people.

Episode 1:Installation & Explanation (HD Recommended)



Episode 2:Soon to come
by IAsep-TrixI
Wed Oct 30, 2013 8:49 pm
Forum: Support and Development
Topic: mouse direction
Replies: 10
Views: 2867

Re: mouse direction

Plu wrote:Most likely the mouse is using screen coördinates, while the player is using world coördinates.
I was doing

Code: Select all

if mouse.x > player.x then 
blah blah blah
end
it used the players coordinates to switch directions when the mouse is clicked
by IAsep-TrixI
Tue Oct 29, 2013 11:48 am
Forum: Support and Development
Topic: mouse direction
Replies: 10
Views: 2867

Re: mouse direction

DaedalusYoung wrote:

Code: Select all

if mouse.x < screen.width / 2 then
    -- mouse is on the left half of the screen
else
    -- mouse is on the right half of the screen
end
It worked at first but when I started using tiled and the camera lib it started to mess up, do you know whats causing this?
by IAsep-TrixI
Mon Oct 28, 2013 11:09 pm
Forum: Support and Development
Topic: mouse direction
Replies: 10
Views: 2867

Re: mouse direction

if mouse.x < screen.width / 2 then -- mouse is on the left half of the screen else -- mouse is on the right half of the screen end It worked! It kinda didnt work right, so I tweaked it a bit to my likings so instead of screenWidth it is not player.x so that it goes left/right according to the playe...
by IAsep-TrixI
Sun Oct 27, 2013 11:57 pm
Forum: Support and Development
Topic: mouse direction
Replies: 10
Views: 2867

Re: mouse direction

DaedalusYoung wrote:

Code: Select all

if mouse.x < screen.width / 2 then
I only want it to update when the mouse is clicked, should I do something like
If mouse is clicked then
if mouse.x < screen.width/2 then
blah blahb lah
end
end
?
by IAsep-TrixI
Sun Oct 27, 2013 10:29 pm
Forum: Support and Development
Topic: mouse direction
Replies: 10
Views: 2867

mouse direction

I was just wondering, how to check the mouse direction, because for my new game that Im working on in my spare time, he will look left and right when either A or D is pressed, but what I want him to do is that when my mouse is on the left or right from the middle of the screen and I click, it will f...
by IAsep-TrixI
Sun Oct 27, 2013 8:10 pm
Forum: Games and Creations
Topic: Very Sociopathic Aang's Adventure Time
Replies: 9
Views: 2907

Re: Very Sociopathic Aang's Adventure Time

I am addicted to this game! xD
It's funny and not too hard or too easy! Can I ask how you did the random spawning of enemies? and how did you get the camera to shake when you shoot?
by IAsep-TrixI
Sun Oct 27, 2013 6:42 pm
Forum: Games and Creations
Topic: [UPDATE] Flyer Deathmatch [alpha] v 1.20
Replies: 10
Views: 3817

Re: [UPDATE] Flyer Deathmatch [alpha] v 1.20

Hey, the game has gone so epic! I was wondering though, how did you get dynamic lights for your bullets and how did you shoot 2 at once? Im thinking of doing that in R.O.B.B.E.D. (my new game that I have been working on for 2 months)