WARP from a point to another point in the same screen

User avatar
Mugi
Posts: 634
Joined: Thu Dec 27, 2018 8:30 pm

Re: WARP from a point to another point in the same screen

Post by Mugi » Sun Jul 21, 2019 5:14 pm

well the code is not comple really, it just despawns the player and makes a new one, but you have to set the coordinates and what not for it.
i didnt really intend the code to be something that you can just copypaste and throw in really, it's just a general idea of how to do things.

learning is part of the fun in this business :)
User avatar
Kajika
Posts: 39
Joined: Sun Mar 18, 2018 4:51 pm

Re: WARP from a point to another point in the same screen

Post by Kajika » Sun Jul 21, 2019 7:49 pm

I understood where the error came from.
the coordinates you gave me are in pixels, while I resonated with what the software displayed me.
he is doing well now!
I will prepare it properly, and then I will attack the AI ​​of my monster object :)

thanks again
you spoony bard!
Sorry for my english, i do the must!
:lol:
User avatar
Mugi
Posts: 634
Joined: Thu Dec 27, 2018 8:30 pm

Re: WARP from a point to another point in the same screen

Post by Mugi » Sun Jul 21, 2019 7:58 pm

no problem :)
i thought i did write into the post i made that the coordinates are pixels though :P
User avatar
Kajika
Posts: 39
Joined: Sun Mar 18, 2018 4:51 pm

Re: WARP from a point to another point in the same screen

Post by Kajika » Sun Jul 21, 2019 9:10 pm

i saw that, it is why i found the error quickly. AT THE START I THOUGHT THAT it was a mistake on your part to talk about pixel

do you know a method to identify clerly?
you spoony bard!
Sorry for my english, i do the must!
:lol:
User avatar
Kajika
Posts: 39
Joined: Sun Mar 18, 2018 4:51 pm

Re: WARP from a point to another point in the same screen

Post by Kajika » Fri Aug 16, 2019 9:49 am

Hello everyone and hello mugi if you read me again.
The script you gave me above taught me a lot but I'm stuck on an incomprehension, and I hope someone can help me:
so when I use the code, I choose a point for x and one for y.
the logic would like that my tiles having attribute this script after the disappearance make me reappear in the same place. but this is not the case, and I can not understand the logic of operation.
if you want more details pictured I can provide you that.
thank you for your attention, and I hope to find a solution, I test my side different things but I post this message because I lose my footing.
thank you all
you spoony bard!
Sorry for my english, i do the must!
:lol:
Post Reply