Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Professional Discussion / 2D Rotating man with a view area?

Author
Message
Alduce
23
Years of Service
User Offline
Joined: 26th Oct 2002
Location: Rama spaceship
Posted: 16th Oct 2013 20:45
Hi all, I made a top view man walking on a background with some other objects.

Please watch the attached pic.

You can see the man (sprite 1) and the view area (sprite 2)

So, I can rotate the man to let he walk in all directions (no way the classical 8 direction!) and I am trying to make the view area rotating NOT in view area center but using the man as a pivot.

Can someone help me to understand how I can do it?
Thank you!
Sasuke
20
Years of Service
User Offline
Joined: 2nd Dec 2005
Location: Milton Keynes UK
Posted: 16th Oct 2013 21:12
Using Offset Sprite you can achieve this which offsets it's central point. Example:



"Get in the Van!" - Van B
Alduce
23
Years of Service
User Offline
Joined: 26th Oct 2002
Location: Rama spaceship
Posted: 16th Oct 2013 21:54
Ahhhhh THANK YOU! I start just now to make some experiments!

Login to post a reply

Server time is: 2026-07-06 10:34:53
Your offset time is: 2026-07-06 10:34:53