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 / [LOCKED] loop glitch?

Author
Message
Mugen Wizardry
User Banned
Posted: 26th May 2010 17:25
can someone please tell me how to fix this? for some reason, if i'm on a loop de loop, and facing left or right, and attempt to fall off the loop de loop, my player object spins and goes real crazy...



CHECK OUT SOME MUSIC FROM MY NEW TECHNO CD! TECHNOKINESIS
http://www.youtube.com/watch?v=4a8KedfgVv0
ALSO, CHECK OUT MY NEW TECHNO CD! http://www.imageposeidon.com/
luskos
19
Years of Service
User Offline
Joined: 28th Jun 2007
Location:
Posted: 26th May 2010 20:00
It`s because the strange values you gived to the move object and rotate object.You can experiment with them until you find the values you like. You can add a flag which is true when there is keypress and check once in a loop if there is no keypress and reset the flag.

Where there is a will, there is a way.
I often edit my posts, that`s who i am
Mugen Wizardry
User Banned
Posted: 26th May 2010 20:04
um, no offense, but i do not understand
you.

CHECK OUT SOME MUSIC FROM MY NEW TECHNO CD! TECHNOKINESIS
http://www.youtube.com/watch?v=4a8KedfgVv0
ALSO, CHECK OUT MY NEW TECHNO CD! http://www.imageposeidon.com/
sladeiw
17
Years of Service
User Offline
Joined: 16th May 2009
Location: UK
Posted: 26th May 2010 21:07 Edited at: 26th May 2010 21:08
I would trace some variables. If it spinning like crazy then whatever condition would normally cause it to spin (under control) is probably matching every loop for some reason.
baxslash
Valued Member
Bronze Codemaster
19
Years of Service
User Offline
Joined: 26th Dec 2006
Location: Duffield
Posted: 26th May 2010 22:31 Edited at: 26th May 2010 22:44
Quote: "`pardon the pun "

You left my remark in!!

It might help if you post the "loop de loop" object I made for you, I'll go find it and take a look!

EDIT: attached version including the dbo... Hmmm... This happens when the character gets close to the edge of the 'loop' and is caused by the code looking for something under the character when there isn't anything there.

My guess is you'll have to add a check in to deal with when the "ray cast" doesn't hit anything IE:


Hope that helps...

Mugen Wizardry
User Banned
Posted: 26th May 2010 22:58 Edited at: 27th May 2010 00:50
EDIT: Figured it out.

It was



CHECK OUT SOME MUSIC FROM MY NEW TECHNO CD! TECHNOKINESIS
http://www.youtube.com/watch?v=4a8KedfgVv0
ALSO, CHECK OUT MY NEW TECHNO CD! http://www.imageposeidon.com/
Mugen Wizardry
User Banned
Posted: 27th May 2010 00:51
Now can someone please help me fix this example so the object detects what angle he's at, and at what speed, and uses that to decide whether or not he should turn towards the beginning of the loop and run down it, or turn towards the end of it and run down it.

CHECK OUT SOME MUSIC FROM MY NEW TECHNO CD! TECHNOKINESIS
http://www.youtube.com/watch?v=4a8KedfgVv0
ALSO, CHECK OUT MY NEW TECHNO CD! http://www.imageposeidon.com/
Mobiius
Valued Member
23
Years of Service
User Offline
Joined: 27th Feb 2003
Location: The Cold North
Posted: 27th May 2010 09:18
Do you want us to do it all for you? We've done everything else! lol

My signature is NOT a moderator plaything! Stop changing it!
Mugen Wizardry
User Banned
Posted: 27th May 2010 15:27
Normally, I would say no.

But since you're the ones who made it,

I shouldn't have to debug YOUR examples.

If you want honesty.

CHECK OUT SOME MUSIC FROM MY NEW TECHNO CD! TECHNOKINESIS
http://www.youtube.com/watch?v=4a8KedfgVv0
ALSO, CHECK OUT MY NEW TECHNO CD! http://www.imageposeidon.com/
baxslash
Valued Member
Bronze Codemaster
19
Years of Service
User Offline
Joined: 26th Dec 2006
Location: Duffield
Posted: 27th May 2010 15:46
Quote: "I shouldn't have to debug YOUR examples."

I helped you out by writing some code to get you started with your problem, I don't work for you!

I won't be making the same mistake again, if you want honesty!

I understand what it's like when you get frustrated but if you are in over your head maybe you should try a simpler project to start with. That's as nice as I'm going to get over your previous post.

Cheeky &*^(%&(!!!

Mugen Wizardry
User Banned
Posted: 27th May 2010 15:48
If you're going to be lazily writing code that doesn't work, maybe YOU'RE in over YOUR head. -.-

Blasted &!*!&@(@(!

CHECK OUT SOME MUSIC FROM MY NEW TECHNO CD! TECHNOKINESIS
http://www.youtube.com/watch?v=4a8KedfgVv0
ALSO, CHECK OUT MY NEW TECHNO CD! http://www.imageposeidon.com/
Mugen Wizardry
User Banned
Posted: 27th May 2010 15:53
Now I'm sorry if I sounded rude, but NO one calls me a name.

CHECK OUT SOME MUSIC FROM MY NEW TECHNO CD! TECHNOKINESIS
http://www.youtube.com/watch?v=4a8KedfgVv0
ALSO, CHECK OUT MY NEW TECHNO CD! http://www.imageposeidon.com/
Mobiius
Valued Member
23
Years of Service
User Offline
Joined: 27th Feb 2003
Location: The Cold North
Posted: 27th May 2010 15:56
!\"£$%^&£\"$m

My signature is NOT a moderator plaything! Stop changing it!
Mugen Wizardry
User Banned
Posted: 27th May 2010 15:58 Edited at: 27th May 2010 15:58
superkamehameha &@^&@^!&!(!(!

CHECK OUT SOME MUSIC FROM MY NEW TECHNO CD! TECHNOKINESIS
http://www.youtube.com/watch?v=4a8KedfgVv0
ALSO, CHECK OUT MY NEW TECHNO CD! http://www.imageposeidon.com/
Mobiius
Valued Member
23
Years of Service
User Offline
Joined: 27th Feb 2003
Location: The Cold North
Posted: 27th May 2010 16:01
Direction of conversation...


My signature is NOT a moderator plaything! Stop changing it!
Mugen Wizardry
User Banned
Posted: 27th May 2010 16:03
Direction of ur mom



|
V

CHECK OUT SOME MUSIC FROM MY NEW TECHNO CD! TECHNOKINESIS
http://www.youtube.com/watch?v=4a8KedfgVv0
ALSO, CHECK OUT MY NEW TECHNO CD! http://www.imageposeidon.com/
IanM
Retired Moderator
23
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 27th May 2010 16:05 Edited at: 27th May 2010 16:06
Abusive

This thread breaks the rules set out in section 3.1 of the Acceptable Usage policy. Please refer to section 3.1 of the Acceptable Usage Policy for full details:

http://www.thegamecreators.com/?gf=aup#forum

AUP Section 3.17 ...Moderators shall, at their discretion, determine what constitutes a violation of these terms, along with generally accepted netiquette standards, and can take action against those who violate these rules.

If you contributed to the reason for locking, you may now find yourself on moderation, or in extreme cases a ban.

@Mugen Wizardry,
Consider how people have tried to help you, and then consider how they feel when you act ungrateful over it.

[edit]Unfortunately for you, you managed to post just before I locked. Up until then, this was a slap-free zone...

Login to post a reply

Server time is: 2026-07-25 08:28:27
Your offset time is: 2026-07-25 08:28:27