[closed] the movement range messes up.

Questions about the LÖVE API, installing LÖVE and other support related questions go here.
Forum rules
Before you make a thread asking for help, read this.
Post Reply
User avatar
Pospos
Citizen
Posts: 73
Joined: Sun Jun 18, 2017 11:10 am
Location: Agadir

[closed] the movement range messes up.

Post by Pospos »

Thank you all for your help.


since i stumbled upon this issue i'm gonna let it for those who have the same problem.


I had a tactical rpg movement system which displayed a player, and a movement range at the opposite side of it.

The solution; i had swapped the x and y values of the movement range and displayed the player 2 blocks away from the actual position.
Attachments
ATacticalMovementIssue.love
(28.24 KiB) Downloaded 185 times
movement range.png
movement range.png (63.5 KiB) Viewed 5638 times
ATacticalMovementIssue.love
(28.24 KiB) Downloaded 156 times
Last edited by Pospos on Fri Aug 03, 2018 8:59 pm, edited 5 times in total.
User avatar
Sir_Silver
Party member
Posts: 286
Joined: Mon Aug 22, 2016 2:25 pm
Contact:

Re: The movement ranges messes up

Post by Sir_Silver »

Image
User avatar
Pospos
Citizen
Posts: 73
Joined: Sun Jun 18, 2017 11:10 am
Location: Agadir

Re: The movement ranges messes up

Post by Pospos »

I need to make the mouvement range correspond to the player.
User avatar
zorg
Party member
Posts: 3465
Joined: Thu Dec 13, 2012 2:55 pm
Location: Absurdistan, Hungary
Contact:

Re: The movement ranges messes up what can i do to change it?

Post by zorg »

Obviously it's offset from the player position; "ID10T" tests should help, like printing out the player's coordinates, and then the center of the highlighted area, and checking the code why it does that.
Me and my stuff :3True Neutral Aspirant. Why, yes, i do indeed enjoy sarcastically correcting others when they make the most blatant of spelling mistakes. No bullying or trolling the innocent tho.
User avatar
Pospos
Citizen
Posts: 73
Joined: Sun Jun 18, 2017 11:10 am
Location: Agadir

Re: The movement ranges messes up what can i do to change it?

Post by Pospos »

thank you!
User avatar
Stifu
Party member
Posts: 106
Joined: Mon Mar 14, 2016 9:53 am
Contact:

Re: closed

Post by Stifu »

Why delete your question once you've got your answer? Don't you want your thread to be helpful to other people with the same problem?
Zabuyaki, our upcoming beat 'em up: https://www.zabuyaki.com
User avatar
Pospos
Citizen
Posts: 73
Joined: Sun Jun 18, 2017 11:10 am
Location: Agadir

Re: [closed] the movement range messes up.

Post by Pospos »

Sorry, put it back. Just thought it wasn't useful anymore, that it was polluting the forum since it's a quite stupid error.
I'm the type of person that deletes a lot of stuff when i'm unsure, and that happens a lot.
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests