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 / IS this an offset problem?

Author
Message
JSN
22
Years of Service
User Offline
Joined: 8th Nov 2003
Location: 127.0.0.1
Posted: 30th Nov 2003 18:35
Afternoon all...

Just a quick question which is puzzling me.

IF you do a small program that does the following...

1) Create a sprite
2) Rotate it to 90 degrees (so it's kinda pointing right)
3) Move it 100 pixels.
4) Rotate it to 180 degrees (so it's kinda pointing down)
5) Move it 100 pixels.

Between steps 3 and 4, you should notice a 'glitch'.

Is this anything to do with the offset been at the top-left corner of the sprite, indeed, if there is such an offset rule?

TIA

-----

~ J ~
IanM
Retired Moderator
23
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 30th Nov 2003 19:18
It sounds like it. Have you tried it with the offset set to the centre of the sprite?
JSN
22
Years of Service
User Offline
Joined: 8th Nov 2003
Location: 127.0.0.1
Posted: 30th Nov 2003 19:24
IanM

Really sorry, my fault, should have RTFM () I see there IS an option to set the Offset, I thought there was only an option to read it.

Many thanks, just tinkered with it, and it works fine now...

-----

~ J ~

Login to post a reply

Server time is: 2026-07-27 01:32:58
Your offset time is: 2026-07-27 01:32:58