Digital Workshop

Welcome to the Digital Workshop Message Boards
It is currently December 22nd, 2024, 12:51 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: Collision Detection
PostPosted: July 7th, 2016, 9:27 pm 
Offline

Joined: November 3rd, 2004, 2:11 pm
Posts: 323
I am trying to create a shuffleboard game. When a puck goes through the board, I only want it to add/subtract final score from where that puck ends up. Right now if it slides through the board it picks up 7, 8, 10, etc. depending on where it was aimed. Is there some way to only score where it ends up? So let's say puck 1 ends up on a 10 and then puck 2 pushes it out and ends on the 10. Score should just be 10, but not sure how to get there?

_________________
Opus Pro XE 9.1 Win7 64-bit Core i3 8MB RAM


For this message bwpatric has been thanked by : mackavi


Top
 Profile Visit website  
 
 Post subject: Re: Collision Detection
PostPosted: July 9th, 2016, 11:27 am 
Offline
Godlike
Godlike
User avatar

Joined: March 21st, 2007, 10:44 am
Posts: 3188
Location: UK
Opus: Evolution
Would IsObjectIntersecting work?

</mack>

_________________
When you have explored all avenues of possibilities, what ever remains, how ever improbable, must be the answer.

Interactive Solutions for Business & Education
Learn Anywhere. Learn Anytime.

www.interaktiv.co.uk
+44 (0) 1395 548057


Top
 Profile Visit website  
 
 Post subject: Re: Collision Detection
PostPosted: July 9th, 2016, 7:50 pm 
Offline

Joined: November 3rd, 2004, 2:11 pm
Posts: 323
I zero the result upon leaving and assign upon entering. In preview that works great. Once I publish, everything, and I mean everything, goes south. It's too bad, but this feels really wonky to me.

I've tried it as both a HTML5 ouptut and Flash output. Each doesn't seem to work. For instance, the Flash version moves the puck about a fourth of where it should end up, the HTML5 version stores variables even though I'm clearing them and shows pucks before they are supposed to appear and that throws everything off. Just a lot of weird stuff like that. I don't have anything fancy really going on that I can see. I have polygonal hotspots with collision enter/exit triggers, updating a variable, moving pucks, showing/hiding things, adding variables.

_________________
Opus Pro XE 9.1 Win7 64-bit Core i3 8MB RAM


For this message bwpatric has been thanked by : mackavi


Top
 Profile Visit website  
 
 Post subject: Re: Collision Detection
PostPosted: July 13th, 2016, 8:56 pm 
Offline
Godlike
Godlike
User avatar

Joined: March 21st, 2007, 10:44 am
Posts: 3188
Location: UK
Opus: Evolution
My understanding is that Flash and HTML execute code differently, so preview and publish may not match.

As for the problem, can you post the project?

</mack>

_________________
When you have explored all avenues of possibilities, what ever remains, how ever improbable, must be the answer.

Interactive Solutions for Business & Education
Learn Anywhere. Learn Anytime.

www.interaktiv.co.uk
+44 (0) 1395 548057


Top
 Profile Visit website  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 31 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group