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 / Re scalling object

Author
Message
Rims Flames
11
Years of Service
User Offline
Joined: 5th Apr 2014
Location:
Posted: 8th Jul 2014 23:40
Hello,

I want to scale an object by clicking another object. Increasing and decreasing values.
However...it works on increase, but when on decrease, the object increaseas and then decreases.

Thank You!

Here is the code:



Rims Flames
revenant chaos
DBPro Master
18
Years of Service
User Offline
Joined: 21st Mar 2007
Location: Robbinsdale, MN
Posted: 9th Jul 2014 01:46 Edited at: 9th Jul 2014 01:49
It seems to be caused by fix object scale. Removing that fixes the error but it exposes another which I can't explain: if brushsizex is an integer then the scale can't exceed 104, however if its a float then it works as expected.



I also threw together a simplified version of your code in case you would like to take a look.

Rims Flames
11
Years of Service
User Offline
Joined: 5th Apr 2014
Location:
Posted: 9th Jul 2014 18:34
Yes that worked, thank you very much for your help!

Rims Flames

Login to post a reply

Server time is: 2025-05-13 13:17:31
Your offset time is: 2025-05-13 13:17:31