123
-=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- (c) WidthPadding Industries 1987 0|519|0 -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=-
Socoder -> Blitz -> Character Select

Page : 1 Prev 2 3 Next
Tue, 25 May 2010, 14:39
ShadowIce
ok, i'll upload the models.
Tue, 25 May 2010, 15:11
ShadowIce
Dwarf1:

https://www.mediafire.com/?ujjjim3ymoz

SuperSonic:

https://www.mediafire.com/download.php?3mymr5jnnae

Ignore the wav files.

u don't need them to be able to execute it
Wed, 26 May 2010, 08:14
ShadowIce
is that enough info?
Wed, 26 May 2010, 11:03
bram32
I think it is a bit difficult for people to download all media separately, via mediafire. You should make it as easy as possible for people to help you. A single download, with all source files and media would be best. Also, a clear description of your problem and a straightforward question work best: "i'm close, but still don't get it.." isn't really a good question. I have no idea what your problem is now, so how could I help?
Mainly questions that are to the point, and a bit more generic, such as <<Q:how do I switch between models using Blitz3D? A:hide the first one, show the second one, using hideentity/showentity>>, are easy understandable for others.
It may take a bit more preparation to make a posting, but it is surely worth the effords.
Wed, 26 May 2010, 11:06
ShadowIce
ok. i will upload the rar file.
Wed, 26 May 2010, 11:14
ShadowIce
https://www.mediafire.com/?mgynwwmidwo

This has EVERYTHING..

Now. the problem is I can load both characters but I can't hide the previous 1 when switching to another sphere either on the left or on the right of selected
sphere.

also, i can't get it to load all characters
on their own spheres at once like the 1st 15
secs of this video.

https://www.youtube.com/watch?v=tY6KVgAE9BY
Wed, 26 May 2010, 12:09
bram32
I appreciate you taken the time to do that. That is why I've taken a look at it.
At line 18, add the following:

This will ensure that all models are hidden when the program starts.
At line 97, add the following:

This will ensure that the previous model you selected is hidden.
Then, at line 109 (or 110 if you've added a return/enter), add:

This will ensure that the 'new' model you selected is shown.
Obviously, it will only work with model 0 and model 1, so you have to skip a bit around before the model appears.

I noticed a few other issues: you are using

which is followed by

So graphics mode is set twice. You might better remove one of them.

Also, around line 135 and around line 145, there is a RenderWorld command. So the world is rendered twice. You should remove the second one -> the one before 'Flip'. It should also ensure you can see the text you are writing onto the screen.

It is issues like these that make me think that it is a good idea to clean up the code. It now comes across as a patchwork. Indenting and revising redundant parts will maintain readability. Readability is of key importance when trying to solve issues, when expanding your code and when asking for help.
Wed, 26 May 2010, 12:25
Erebel55
ShadowIce, make sure you take the time to read the full content of bram32's post..some very useful information in there, and remember that he went out of his way to give you that. Good luck

-=-=-
Lava Monkey
https://play.google.com/store/apps/details?id=com.lvm.lavamonkey
Wed, 26 May 2010, 13:52
ShadowIce
it's still not working.

it temporarily showing the model.

then hiding it again.


Wed, 26 May 2010, 14:08
bram32
That last line should be placed two lines lower, after 'endif'.
Wed, 26 May 2010, 14:15
ShadowIce
what line?
Wed, 26 May 2010, 14:18
ShadowIce
o ok. i think i got it.

is this it?


Wed, 26 May 2010, 14:19
bram32
Don't know, does it work?
Wed, 26 May 2010, 14:28
ShadowIce
sorta. now the problem is getting
the showed model to display at the red ball ONLY and show all other spheres w/ characters above them.

it shows if u switch between spheres, but not if u want to position the loaded model at the selected sphere
Wed, 26 May 2010, 14:54
bram32
Okay, do you have any ideas how to approach this?
Wed, 26 May 2010, 14:56
ShadowIce
nope. no idea..

i tried

If SelectedArray=5

but that only made it worse


Wed, 26 May 2010, 15:07
bram32
What good could that line do? It checks if selectedarray is 5, but there is no 'then' part?

First structurize your code. If you add things, but you have no clear idea what it does, how can you add anything?
Then, you should set out your goal, which is this:

<<getting the showed model to display at the red ball ONLY and show all other spheres w/ characters above them>>

That is actually 2 things:
1. getting the showed model to display at the red ball ONLY
2. show all other spheres w/ characters above them

This first point is actually two things as well:
1. getting the showed model to display at <anywhere>
2. getting the showed model to display at the red ball ONLY

A step-by-step approach is the best way to solve this.
But you can't skip steps because you don't like them.
Thus, this could be your to-do list:

1. structurize your code, clean up & remove redundant code
2. getting the showed model to display at <some place>
3. getting the showed model to display at the red ball ONLY
4. show all other spheres w/ characters above them
Wed, 26 May 2010, 15:25
ShadowIce
i added the then.

now can someone please help me who WON'T play mind games?
Wed, 26 May 2010, 16:48
bram32
I'm sorry, do you mean me? If the above doesn't help you, then what do you need?
Wed, 26 May 2010, 17:56
ShadowIce
what i need is to be able to position the VISIBLE object at sphere 5 or SelectedArray=5 if u will, yet still show all the OTHER objects on other spheres.

NOW. when the user hits the key, it "SWITCHES" that model to sphere 5 thus hiding the old model, and showing the new..
Wed, 26 May 2010, 18:22
bram32
Sure, I understand that. But it can't be done in one step. There is not a single command for it, such as SwitchEntity o.s. So instead, you might wanna break your goal up into smaller parts, and then achieve these subgoals one by one.
Looking at the code you wrote allready, you should be able to pull this one off. It is just a matter of finding the right combination of things. Breaking it down into smaller parts should help you doing so.
Wed, 26 May 2010, 18:31
ShadowIce
ugh. again w/ the mind games. in order to learn, u have to teach me like u were earlier w/ the
hideentity and showentity thing u showed me.
Wed, 26 May 2010, 20:30
Mog
ShadowIce, these aren't mind games- it's very valid advice. I don't want to come across as a dick or anything, but we're not going to hold your hand through all of this. As bram pointed out, there are a lot of inherant problems with your code that makes it hard to debug and work with. I know you're just learning but I, myself, feel put off by the language you're using. We're here to help and are trying, but for god's sake man, approach the advice logically and it will all make sense.

PS: Please please PLEAAAASE use the edit button, double and even triple posting is annoying and bloated.

-=-=-
I am Busy Mongoose - My Website

Dev PC: AMD 8150-FX, 16gb Ram, GeForce GTX 680 2gb

Current Project: Pyroxene
Wed, 26 May 2010, 23:09
Cower
ShadowIce: You wouldn't happen to be that Rez guy from blitzbasic.com, would you? 'Cause that guy's a douche.

|edit| Also, everyone should probably stop helping this guy, since you're just writing his code for him, considering he's doing nothing himself. |edit|
Thu, 27 May 2010, 06:24
ShadowIce
um, who is rez?

i can't believe you would come on and mess with innocent people..
Page : 1 Prev 2 3 Next