The McLeodGaming forums were permanently closed on April 30th, 2020. You are currently viewing a read-only archive.
View unanswered posts | View active topics It is currently Fri May 15, 2020 9:35 am



 [ 155 posts ]  Go to page Previous  1, 2, 3, 4, 5 ... 11  Next
Programming Languages 
Author Message
User avatar

Joined: Wed Nov 12, 2008 9:23 pm
Posts: 124
Location: Charlotte, NC
Gender: Male
Oh I see what you mean. I don't think it took him very long. I think he started in the middle of last year. That's not very long. I'm not sure but it probably did take him longer than that.

It took this much coding for one grab:
Code:
if place_meeting(x,y,obj_player) and obj_player.sprite_index == kirby_grabbing{
move = 0;
vspeed = 0;
hspeed = 0;
grabbed = 1;
x = abs(obj_player.x+5)
y = abs(obj_player.y)
}
if grabbed = 1{
obj_player.sprite_index = kirby_grab;
depth = -3;
}
with obj_player{
if keyboard_check(ord("I")) or keyboard_check_pressed(ord("I")) and keyboard_check_pressed(global.attack){
sprite_index = kirby_grabbing;
}}
with obj_player{
if sprite_index = kirby_grab and keyboard_check_pressed(global.up){
enemy.vspeed = -9;
enemy.move = 1;
enemy.grabbed = 0;
sprite_index = kirby_grabup;
}}


That is for my game being made in game maker.

_________________
Game Maker Awesomenessness
http://www.youtube.com/watch?v=11DylA2AuJI

[NF] wrote:
*f#%$& you*


Image


Sun Mar 01, 2009 12:12 pm
User avatar

Joined: Sat Aug 16, 2008 8:38 am
Posts: 6670
Location: Darkest Antartica
Country: Pakistan (pk)
Gender: Male
Skype: Thaiberium
Currently Playing: The Game
Nac wrote:
I believe C is pretty high-level... at least C++ ...
even you have to occupy-free memory by yourself (when you are using the new statement) and define types on every thingy.

C++ is high level, since you can do OO stuff with it. C, on its own, is really just one step up from assembly language. Again, I'm repeating things I have on my lecture notes...

_________________
Image


Mon Mar 02, 2009 1:40 am
User avatar

Joined: Sun Aug 17, 2008 5:39 pm
Posts: 1248
Gender: Anime Girl
Skype: Nacritico
Currently Playing: LOL
Thaiberium wrote:
Nac wrote:
I believe C is pretty high-level... at least C++ ...
even you have to occupy-free memory by yourself (when you are using the new statement) and define types on every thingy.

C++ is high level, since you can do OO stuff with it. C, on its own, is really just one step up from assembly language. Again, I'm repeating things I have on my lecture notes...


For what I've read, C++ is a "mid-level" lenguage... in other words, a lenguage which can use both "high-level" stuff or "low-level" stuff ... depending on what the coder's needs at the moment.

_________________
SALU2'S Image
_________________
Original forum: show
join date: January 08, 2007
Posts on old MG: 2432, level 16

Image
Image chóu


Mon Mar 02, 2009 3:53 pm
User avatar

Joined: Sat Aug 16, 2008 8:38 am
Posts: 6670
Location: Darkest Antartica
Country: Pakistan (pk)
Gender: Male
Skype: Thaiberium
Currently Playing: The Game
Again true. Still, the more I learn about C and C++, the less I want to use it. Java has spoiled me.

_________________
Image


Tue Mar 03, 2009 2:02 am
User avatar

Joined: Sun Aug 17, 2008 5:39 pm
Posts: 1248
Gender: Anime Girl
Skype: Nacritico
Currently Playing: LOL
Thaiberium wrote:
Again true. Still, the more I learn about C and C++, the less I want to use it. Java has spoiled me.


The only real thing I'm afraid about C/C++ is that it doesn't an "auto-trash collector" (which avoids most of memory looses).

Besides that, I really like the program.

_________________
SALU2'S Image
_________________
Original forum: show
join date: January 08, 2007
Posts on old MG: 2432, level 16

Image
Image chóu


Tue Mar 03, 2009 12:48 pm
User avatar

Joined: Sat Aug 16, 2008 8:38 am
Posts: 6670
Location: Darkest Antartica
Country: Pakistan (pk)
Gender: Male
Skype: Thaiberium
Currently Playing: The Game
Nac wrote:
Thaiberium wrote:
Again true. Still, the more I learn about C and C++, the less I want to use it. Java has spoiled me.


The only real thing I'm afraid about C/C++ is that it doesn't an "auto-trash collector" (which avoids most of memory looses).

Besides that, I really like the program.

Well, the manual memory allocation by the programmer is a drag, but what really gets me are pointers.

_________________
Image


Wed Mar 04, 2009 12:35 am
User avatar

Joined: Sun Aug 17, 2008 5:39 pm
Posts: 1248
Gender: Anime Girl
Skype: Nacritico
Currently Playing: LOL
Thaiberium wrote:
Nac wrote:
Thaiberium wrote:
Again true. Still, the more I learn about C and C++, the less I want to use it. Java has spoiled me.


The only real thing I'm afraid about C/C++ is that it doesn't an "auto-trash collector" (which avoids most of memory looses).

Besides that, I really like the program.

Well, the manual memory allocation by the programmer is a drag, but what really gets me are pointers.


What's your problem with pointers dude? ... I LUV THEM! <3 ...

Really, pointers help you a lot wheter you want to pass a variables as reference or as data...
flash doens't give you that option (it passes some objects as reference, and other as data) , so I'd say [C++ FOR THE WIN]!!

_________________
SALU2'S Image
_________________
Original forum: show
join date: January 08, 2007
Posts on old MG: 2432, level 16

Image
Image chóu


Wed Mar 04, 2009 2:15 pm

Joined: Sat Aug 16, 2008 3:11 am
Posts: 712
Gender: Female
necrolium wrote:
Oh I see what you mean. I don't think it took him very long. I think he started in the middle of last year. That's not very long. I'm not sure but it probably did take him longer than that.

It took this much coding for one grab:
Code:
if place_meeting(x,y,obj_player) and obj_player.sprite_index == kirby_grabbing{
move = 0;
vspeed = 0;
hspeed = 0;
grabbed = 1;
x = abs(obj_player.x+5)
y = abs(obj_player.y)
}
if grabbed = 1{
obj_player.sprite_index = kirby_grab;
depth = -3;
}
with obj_player{
if keyboard_check(ord("I")) or keyboard_check_pressed(ord("I")) and keyboard_check_pressed(global.attack){
sprite_index = kirby_grabbing;
}}
with obj_player{
if sprite_index = kirby_grab and keyboard_check_pressed(global.up){
enemy.vspeed = -9;
enemy.move = 1;
enemy.grabbed = 0;
sprite_index = kirby_grabup;
}}


That is for my game being made in game maker.

That vid in the sig is by you? If so YOU ARE AMA-ZING


Wed Mar 04, 2009 2:28 pm
WWW
User avatar

Joined: Wed Nov 12, 2008 9:23 pm
Posts: 124
Location: Charlotte, NC
Gender: Male
No that is not by me. That is by Saijee. Both videos are. The video in my sig is what inspired me to use game maker. I downloaded it probably two or three years ago but I could not understand anything at all. So a few years later I saw that video and I was like wow Game maker can do that. So I gave it another try last year almost around this month and I was learning little by little. Now I have gotten good at game maker and I can code a lot of things. Every now and then I look back at that video in my sig and say that I will get there one day. I will too get there. But if I encounter a problem or need help, I get help from the Game Maker Community. That is the perfect place for game maker users. In case you are not signed up this is the link:
http://www.gmc.yoyogames.com

_________________
Game Maker Awesomenessness
http://www.youtube.com/watch?v=11DylA2AuJI

[NF] wrote:
*f#%$& you*


Image


Wed Mar 04, 2009 6:51 pm
User avatar

Joined: Sat Aug 16, 2008 8:38 am
Posts: 6670
Location: Darkest Antartica
Country: Pakistan (pk)
Gender: Male
Skype: Thaiberium
Currently Playing: The Game
Nac wrote:
What's your problem with pointers dude? ... I LUV THEM! <3 ...

Really, pointers help you a lot wheter you want to pass a variables as reference or as data...
flash doens't give you that option (it passes some objects as reference, and other as data) , so I'd say [C++ FOR THE WIN]!!

It has been proven that humans are totally inept at keeping track of pointers. Not having to keep track of them allows me to focus on other things while programming.

_________________
Image


Fri Mar 06, 2009 12:14 am
User avatar

Joined: Sun Aug 17, 2008 5:39 pm
Posts: 1248
Gender: Anime Girl
Skype: Nacritico
Currently Playing: LOL
Thaiberium wrote:
Nac wrote:
What's your problem with pointers dude? ... I LUV THEM! <3 ...

Really, pointers help you a lot wheter you want to pass a variables as reference or as data...
flash doens't give you that option (it passes some objects as reference, and other as data) , so I'd say [C++ FOR THE WIN]!!

It has been proven that humans are totally inept at keeping track of pointers. Not having to keep track of them allows me to focus on other things while programming.


Who said that? :huh: .. I've never heard of such a thing /:| ... the bible? :wee:

"Thou shall not keep track of thy pointers!"

_________________
SALU2'S Image
_________________
Original forum: show
join date: January 08, 2007
Posts on old MG: 2432, level 16

Image
Image chóu


Fri Mar 06, 2009 7:22 pm
User avatar

Joined: Sat Aug 16, 2008 8:38 am
Posts: 6670
Location: Darkest Antartica
Country: Pakistan (pk)
Gender: Male
Skype: Thaiberium
Currently Playing: The Game
Nac wrote:
Who said that? :huh: .. I've never heard of such a thing /:| ... the bible? :wee:

"Thou shall suck at keeping track of thy pointers!"

That's more like it though.

What I really don't want to start, is an argument as to why the programming languages we use are superior to another's. Such debates often border on fanatical.

_________________
Image


Sat Mar 07, 2009 3:33 am
User avatar

Joined: Sun Aug 17, 2008 5:39 pm
Posts: 1248
Gender: Anime Girl
Skype: Nacritico
Currently Playing: LOL
Thaiberium wrote:
Nac wrote:
Who said that? :huh: .. I've never heard of such a thing /:| ... the bible? :wee:

"Thou shall suck at keeping track of thy pointers!"

That's more like it though.

What I really don't want to start, is an argument as to why the programming languages we use are superior to another's. Such debates often border on fanatical.


I'm not fanatical to anything Thai... in fact, I believe the more lenguages you know, the better... because each lenguage has it's pros and cons.
So, it depends what you want to code; what will be better to use. :mrgreen:

Now, tell me... why do you hate pointers? /:|
I've not coded with pointers at all (I've only studied how to use them), so maybe there is something about them I've not found yet.

_________________
SALU2'S Image
_________________
Original forum: show
join date: January 08, 2007
Posts on old MG: 2432, level 16

Image
Image chóu


Sat Mar 07, 2009 11:34 am
User avatar

Joined: Sat Aug 16, 2008 8:38 am
Posts: 6670
Location: Darkest Antartica
Country: Pakistan (pk)
Gender: Male
Skype: Thaiberium
Currently Playing: The Game
Nac wrote:
I'm not fanatical to anything Thai... in fact, I believe the more lenguages you know, the better... because each lenguage has it's pros and cons.
So, it depends what you want to code; what will be better to use. :mrgreen:

Now, tell me... why do you hate pointers? /:|
I've not coded with pointers at all (I've only studied how to use them), so maybe there is something about them I've not found yet.

OH, YOU, HAVE, NO, IDEA. Try implementing a complex data structure such as a heap in C using pointers.

What I like about Java is how pointers are transparent from the user's point of view. So its sorta like my main in an MMO.

_________________
Image


Sat Mar 07, 2009 4:58 pm
User avatar

Joined: Sun Aug 17, 2008 5:39 pm
Posts: 1248
Gender: Anime Girl
Skype: Nacritico
Currently Playing: LOL
Thaiberium wrote:
Nac wrote:
I'm not fanatical to anything Thai... in fact, I believe the more lenguages you know, the better... because each lenguage has it's pros and cons.
So, it depends what you want to code; what will be better to use. :mrgreen:

Now, tell me... why do you hate pointers? /:|
I've not coded with pointers at all (I've only studied how to use them), so maybe there is something about them I've not found yet.

OH, YOU, HAVE, NO, IDEA. Try implementing a complex data structure such as a heap in C using pointers.

What I like about Java is how pointers are transparent from the user's point of view. So its sorta like my main in an MMO.


Well, okay, okay... I'm sorry :| .

I just though it was cooler than... let's say.. actionScript or python. In those lenguages, there is no way to know if something is being passed as a value or a path.
It all depends wheter the variable has been defined locally (or not), and what type of variable/object you are passing.

_________________
SALU2'S Image
_________________
Original forum: show
join date: January 08, 2007
Posts on old MG: 2432, level 16

Image
Image chóu


Sat Mar 07, 2009 11:38 pm
Display posts from previous:  Sort by  
 [ 155 posts ]  Go to page Previous  1, 2, 3, 4, 5 ... 11  Next

Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

cron
Powered by phpBB® Forum Software © phpBB Group
Designed by ST Software for PTF.