Search found 11 matches

by bluedudex2
Sat Dec 05, 2015 1:16 pm
Forum: Support and Development
Topic: Creating a 2.5d game
Replies: 11
Views: 7193

Re: Creating a 2.5d game

The first argument in math.min is the player position. The fault lies with your code. Are you making sure player_x and player_y are actually number values first? Stupid mistake on my part. The code works but I edited so that the bottom of the player stops when it hits the top of the blue square (we...
by bluedudex2
Sat Dec 05, 2015 4:11 am
Forum: Support and Development
Topic: Creating a 2.5d game
Replies: 11
Views: 7193

Re: Creating a 2.5d game

Couldn't get around to testing it until now and when I do try it, it keeps throwing up an error saying: Bad argument #1 to 'min' (number expected, got nil)
by bluedudex2
Fri Dec 04, 2015 4:08 am
Forum: Support and Development
Topic: Creating a 2.5d game
Replies: 11
Views: 7193

Re: Creating a 2.5d game

This should accomplish the same thing: (Untested) player_x = math.max(math.min(player_x, 700 - player_w), 100) player_y = math.max(math.min(player_y, 500 - player_h), 400) Like I said, I just made sloppy prof of concept. :) Anyway, I always forget about the basic math functions like math.min/max, t...
by bluedudex2
Thu Dec 03, 2015 11:55 am
Forum: Support and Development
Topic: Creating a 2.5d game
Replies: 11
Views: 7193

Re: Creating a 2.5d game

You can check this quick file I made. The base code to make the player stay where you want him is if player_x < 100 then player_x = 100 elseif player_x + player_w > 700 then player_x = 700 - player_w end if player_y + player_h < 400 then player_y = 400 - player_h elseif player_y + player_h > 500 the...
by bluedudex2
Sun Aug 30, 2015 2:15 pm
Forum: Support and Development
Topic: I Create a LOVE IDE With autocomplete
Replies: 33
Views: 14503

Re: I Create a LOVE IDE With autocomplete

btw anyone that see that post and knows html,css and javascript I would really appreciate if he/she created a small site(I have server to host the site) for uploading my versions because I don't have enough knowledge in html,etc. I don't need anything more than an update log an 'About' and a downlo...
by bluedudex2
Sat Aug 29, 2015 5:30 pm
Forum: Support and Development
Topic: I Create a LOVE IDE With autocomplete
Replies: 33
Views: 14503

Re: I Create a LOVE IDE With autocomplete

Take your time, in fact time as much time you need, no good things come from haste and I look forward to see what you make of this IDE :D
by bluedudex2
Sat Aug 29, 2015 4:06 pm
Forum: Support and Development
Topic: I Create a LOVE IDE With autocomplete
Replies: 33
Views: 14503

Re: I Create a LOVE IDE With autocomplete

This shows a lot of promise, if done right I can also see this as being THE ide for love 2d development. Keep at it!
by bluedudex2
Sat Aug 29, 2015 6:08 am
Forum: Support and Development
Topic: Double Jumping Help.
Replies: 6
Views: 5262

Re: Double Jumping Help.

Thanks for the help, it works! Too think it was that simple this entire time.

Edit:
I'm curious on how to incorporate the drop jump; jump off a ledge and if double jump is true then set jumps left to 1 not have it 2.
by bluedudex2
Fri Aug 28, 2015 4:35 pm
Forum: Support and Development
Topic: Double Jumping Help.
Replies: 6
Views: 5262

Re: Double Jumping Help.

Nothing I've tried so far is working :cry: . Any help is appreciated.
by bluedudex2
Thu Aug 27, 2015 1:38 pm
Forum: Support and Development
Topic: Double Jumping Help.
Replies: 6
Views: 5262

Re: Double Jumping Help.

So I tried to clean the script a bit and tried what Ruirize suggested (but most likely did it completely wrong :ultraglee: ) and I did make the script cleaner but I can't get the game to double jump. Here is what I have: In player.lua: function jump_mode(mode) if mode == 'ground' then if player.mode...