This site requires JavaScript, please enable it in your browser!
Greenfoot back
VikenPM
VikenPM wrote ...

2023/9/21

How can i rotate an actor around another ?

VikenPM VikenPM

2023/9/21

#
I´m trying to make a little game about a heart with a sword that swings on a 180 degree angle from right to left , but the sword goes further than the 180 degree mark and i´m looking to attatch it to the first actor to lock it in a semi circle , how can i do it ? (i just started learning btw)
danpost danpost

2023/9/21

#
VikenPM wrote...
I´m trying to make a little game about a heart with a sword that swings on a 180 degree angle from right to left , but the sword goes further than the 180 degree mark and i´m looking to attatch it to the first actor to lock it in a semi circle , how can i do it ? (i just started learning btw)
Please provide your current codes (making the sword swing, etc.), so the heart class plus the sword class.
VikenPM VikenPM

2023/9/22

#
I just did a simple code with the keys Left and right that makes the same move but in the opposite direction Move(-8) turn(-4) and Move (8) turn(4) I really don't have anything to start with so i'm sorry , any advice would help
danpost danpost

2023/9/24

#
VikenPM wrote...
I just did a simple code with the keys Left and right that makes the same move but in the opposite direction << Code Omitted >> I really don't have anything to start with so i'm sorry , any advice would help
Maybe you should just provide the codes to all your classes in this project. It might bring forth more understanding as to, not only what you are trying to do, but also how you want things to happen.
VikenPM VikenPM

2023/9/24

#
I already managed to fix it , thx for the support tho :D
You need to login to post a reply.