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.

Author
Message
Silence
13
Years of Service
User Offline
Joined: 14th Oct 2012
Location:
Posted: 18th Apr 2013 05:25
Hello forum.

My question is simple.



This code pops up a question when you get close to the collision and holds it. If you are outside the collision area then it will disappear. Works fine. If you answer the question correctly, I make a small image pop up to show you won. Problem is the picture flashes and you only see it for a second. How can this code be modified so it doesnt do that?
Diggsey
20
Years of Service
User Offline
Joined: 24th Apr 2006
Location: On this web page.
Posted: 18th Apr 2013 05:57 Edited at: 18th Apr 2013 05:57


[b]
Silence
13
Years of Service
User Offline
Joined: 14th Oct 2012
Location:
Posted: 23rd Apr 2013 17:30
Thank you for your help, it works flawlessly except for one thing.





Whenever I go into the game, the bitmap holds correctly as it should but it pastes the same image on all three of the different questions.

"q1" should paste image 999 and it pastes 140
"q2" should paste image 138 and it pastes 140
and "q3" has no problem because its correct image SHOULD be 140. I'm not sure how to fix this problem.
Mobiius
Valued Member
23
Years of Service
User Offline
Joined: 27th Feb 2003
Location: The Cold North
Posted: 23rd Apr 2013 18:55




Are these supposed to have different object numbers? (130 and 141, and 131 and 142)

I live for video games! (And beers, and football, and cars!)
See what I live for here: [url]http:\\www.TeamDefiant.co.uk[/url]
Silence
13
Years of Service
User Offline
Joined: 14th Oct 2012
Location:
Posted: 23rd Apr 2013 19:59
Ah yes. You see I have cubes which are objects 131 and 132. The cubes are just for a show or design. Objects 141 and 142 are small plains hidden underneath the cube that you cant see. The plains are what you collide with.
Mobiius
Valued Member
23
Years of Service
User Offline
Joined: 27th Feb 2003
Location: The Cold North
Posted: 23rd Apr 2013 23:33
Your collision plains, do they overlap? It's possible that they're too close to each other and your registering multiple collisions.

I live for video games! (And beers, and football, and cars!)
See what I live for here: [url]http:\\www.TeamDefiant.co.uk[/url]
Silence
13
Years of Service
User Offline
Joined: 14th Oct 2012
Location:
Posted: 25th Apr 2013 17:09
No. Each plain is set far from each other but for some reason they all paste the same image which shouldnt be happening.
Addisonhanks
13
Years of Service
User Offline
Joined: 9th May 2013
Location:
Posted: 9th May 2013 10:51
Hmmmm, maybe this image processing tutorial article can help you, it explains in details on image poping.
Green Gandalf
VIP Member
21
Years of Service
User Offline
Joined: 3rd Jan 2005
Playing: Malevolence:Sword of Ahkranox, Skyrim, Civ6.
Posted: 10th May 2013 02:40
Quote: "but for some reason they all paste the same image which shouldnt be happening. "


Why? You've only pasted one image, namely image 140. Where does image 140 change?

Mobiius
Valued Member
23
Years of Service
User Offline
Joined: 27th Feb 2003
Location: The Cold North
Posted: 10th May 2013 13:11
There are other images being pasted if you check both code snippets.

The question is, what actually sets the q1, q2 and q3 variables?

I live for video games! (And beers, and football, and cars!)
See what I live for here: [url]http:\\www.TeamDefiant.co.uk[/url]
Green Gandalf
VIP Member
21
Years of Service
User Offline
Joined: 3rd Jan 2005
Playing: Malevolence:Sword of Ahkranox, Skyrim, Civ6.
Posted: 10th May 2013 13:24
Quote: "There are other images being pasted if you check both code snippets."


So there are.

How are the two snippets linked? What's the rest of the code? When do those snippets get called? For example, if the second snippet immediately follows the first then you'll only see image 140 since it will be pasted over the first.

Login to post a reply

Server time is: 2026-07-07 04:32:39
Your offset time is: 2026-07-07 04:32:39