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.

Newcomers DBPro Corner / Enlarging an object

Author
Message
Moruk
19
Years of Service
User Offline
Joined: 9th Feb 2005
Location:
Posted: 4th Mar 2005 14:25
Well, we all have to start somewhere. I'm making a very basic game, you're a ball, and I'm trying to make it a bigger ball when you roll over this cube. But, obviously, it doesn't work.



Well, that's my "code". If anyone could look over it and give me a tip, if there's an easier way to do it, tell me how to make the existing code actually work, that'd be nice ^_^. If this post isn't clear enough, I'll try to make it better.

Thanks in advance.


P4 3.4ghz, 512mb DDR2 533mhz RAM, GeForce 6800 GTO 256mb Graphics Card, Sound Blaster Audigy 2. Win.
TravisP
20
Years of Service
User Offline
Joined: 30th Jun 2004
Location: Behind you, with a knife!
Posted: 4th Mar 2005 14:52
Your trying to detect if the ball is in the exact position of the cube, meaning they both have to be at the one tiny point on the screen. You also were deleting the object to resize it.
Use object collision to detect hit and scale object to resize it.
Replace everything under the label "_enlarge_ball:" with...

Hope that helps, next time read up on all the commands in the help files/manual.

Note: The above I didn't say, your just crazy.

Not a ripoff of The Twilight Zone
Lost in Thought
20
Years of Service
User Offline
Joined: 4th Feb 2004
Location: U.S.A. : Douglas, Georgia
Posted: 4th Mar 2005 15:01
You can also scale it to whatever size you want say ... double the size each time it passes it.



Moruk
19
Years of Service
User Offline
Joined: 9th Feb 2005
Location:
Posted: 4th Mar 2005 15:02
That is so much easier >.<

Thanks a lot ^_^


P4 3.4ghz, 512mb DDR2 533mhz RAM, GeForce 6800 GTO 256mb Graphics Card, Sound Blaster Audigy 2. Win.

Login to post a reply

Server time is: 2024-11-27 23:39:08
Your offset time is: 2024-11-27 23:39:08