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
Ikaki
15
Years of Service
User Offline
Joined: 12th Dec 2010
Location:
Posted: 13th Dec 2010 00:28
I have made a code where i create several object:


for e=1 to 61
make object sphere e+11, 10
m=rnd(1)
n=rnd(1)
if m=1
z=1
else
z=-1
endif
if n=1
y=1
else
y=-1
endif
position object e+11, -y*z*rnd(490),5,z*rnd(490)
color object e+11, rgb(5,5,6)
next e


Now I'm trying to make a code that will check so that when each object is hit by the main sphere, the object gets deleted and I get the points. Im having issues but heres what i have:

for x=12 to 62
if object collision(11,x)>0
score=score+100
delete object x
endif
next x
C0wbox
20
Years of Service
User Offline
Joined: 6th Jun 2006
Location: 0,50,-150
Posted: 13th Dec 2010 08:00 Edited at: 13th Dec 2010 08:03
Um, try rephrasing your post like this:

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------

I have made some code where I create several objects:





Now I'm trying to make some code that will check so that when each object is hit by the main sphere, the object gets deleted and I get the points. I'm having issues but here's what I have:



---------------------------------------------------------------------------------------------------------------------------------------------------------------------------


And, why don't you just try this:

instead of that second code snippet.

Zeus
20
Years of Service
User Offline
Joined: 8th Jul 2006
Location: Atop Mount Olympus
Posted: 13th Dec 2010 08:14 Edited at: 13th Dec 2010 08:16
Lol. Maybe that person doesn't know good english? Also, next time put code in a code snippet like this, makes it easier to read for us forum-dwellers.

Remove the asterisks (*).
[*code]Code here.[*/code]

-Zeus
baxslash
Valued Member
Bronze Codemaster
19
Years of Service
User Offline
Joined: 26th Dec 2006
Location: Duffield
Posted: 15th Dec 2010 13:09
Try rephrasing C0wbox? You clearly understood his meaning and came across as arrogant (sorry but you did).

@Ikaki, if the help given doesn't get you started (although it looks correct and well illustrated) I would suggest posting your question (and any further questions) on the Newcomers forum here: http://forum.thegamecreators.com/?m=forum_read&i=7

There are a lot of people who are at a similar stage to yourself there who are willing to help as well as a few more experienced coders (including myself) who like to help every now and then.

C0wbox
20
Years of Service
User Offline
Joined: 6th Jun 2006
Location: 0,50,-150
Posted: 15th Dec 2010 13:43 Edited at: 15th Dec 2010 13:56
-.- I wasn't asking for anyone's approval.

I just show people on the DBP section how to format a question properly, usually by telling them how to use code snippets and then help them if I can be bothered to fumble through their posts to find the actual question.

All be it this is less extreme than some recent cases, the same process applies.

baxslash
Valued Member
Bronze Codemaster
19
Years of Service
User Offline
Joined: 26th Dec 2006
Location: Duffield
Posted: 15th Dec 2010 14:05
The correct use of the English language is not a requirement for posts on this forum. If you want to help someone with their grammar it is courteous to put it in a humble if not apologetic way (IE. "I hope you don't mind me saying...").

By putting repeated words in bold throughout your post you are labouring the point (which you have already made).

The use of bold or italics is often interpretted as an attempt to put something strongly and might be interpretted as anger or frustration on your part which is unwarrented.

I'm not trying to give you a hard time, just to make you think about people who don't speak our language very well in a slightly more courteous way. This is a worldwide community after all.

I don't think the question is difficult to understand and nor did you (as your answer proves) it was a simple gramatical error. Looks like Zeus was thinking the same thing too...

I don't want a huge debate about this, I was actually trying to help you in the same way you were trying to help Ikaki, by suggesting there might be a better way to phrase your post. Perhaps I should have been more apologetic so you didn't get the impression I was giving you a hard time, sorry.

Login to post a reply

Server time is: 2026-07-21 07:03:29
Your offset time is: 2026-07-21 07:03:29