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.

AppGameKit Classic Chat / AND operator + getpointerx/y

Author
Message
chafari
Valued Member
17
Years of Service
User Offline
Joined: 2nd May 2006
Location: Canary Islands
Posted: 7th Dec 2018 18:56
Hi there.
I'm trying to convert my old 3D program from Dbpro to AppGameKit . It's almost done , but for some razon the conbination of some varables with getpointerx() o getpointery() just doesn't work . This is the selecction system where I compare old mouseX/Y with the actual to select and move vertex. This is driving me crazy!.

Operator AND works like a charm in most situation but not here...it works pretty good in Dbpro and I can't understand Why here in AppGameKit it say No and No.
Any idea.?
Thanks in advance
I'm not a grumpy grandpa
puzzler2018
User Banned
Posted: 7th Dec 2018 19:05
Not sure i understand what trying to do, do you have a small snippet showing the fault at all
chafari
Valued Member
17
Years of Service
User Offline
Joined: 2nd May 2006
Location: Canary Islands
Posted: 7th Dec 2018 19:15
Thasks puzzler2018 for your time.

Here's a bit of code with sprites showing the what I'm triying to do

I'm not a grumpy grandpa
puzzler2018
User Banned
Posted: 7th Dec 2018 19:20 Edited at: 7th Dec 2018 19:21
Are you trying to make everything that when you press left button to create a square turn to yellow at all?

Give me a min, ill see how i get on
puzzler2018
User Banned
Posted: 7th Dec 2018 19:24
I changed
if GetRawMouseLeftPressed()

to

if GetRawMouseLeftState()

on line 69





chafari
Valued Member
17
Years of Service
User Offline
Joined: 2nd May 2006
Location: Canary Islands
Posted: 7th Dec 2018 19:27
@puzzler 2018 Ok take your time .

I just made another test and it works as it must do .



But doing something similar....just comparing old pointerx() and old pointery() it do nothing at all.
I'm not a grumpy grandpa
puzzler2018
User Banned
Posted: 7th Dec 2018 19:28
Might be worth sticking in an else in that area too

chafari
Valued Member
17
Years of Service
User Offline
Joined: 2nd May 2006
Location: Canary Islands
Posted: 7th Dec 2018 19:30 Edited at: 7th Dec 2018 19:33
Wow....you are my hero .
That was being like a pain in the neck .

Thanks so much...


Quote: "Might be worth sticking in an else in that area too"

for sure....that what I'l do .

I'm not a grumpy grandpa
puzzler2018
User Banned
Posted: 7th Dec 2018 19:32
Your welcome. I get flummexed sometimes too - all day i might have a debugging problem and after 5 days of tearing my hair out - i was missing a semi-colon lol
chafari
Valued Member
17
Years of Service
User Offline
Joined: 2nd May 2006
Location: Canary Islands
Posted: 7th Dec 2018 19:34
Quote: "after 5 days of tearing my hair out - i was missing a semi-colon lol"


Lol... thanks again

Cheers.
I'm not a grumpy grandpa

Login to post a reply

Server time is: 2024-03-28 22:33:00
Your offset time is: 2024-03-28 22:33:00