Go to page 1, 2, 3, 4, 5 ... 41  Next  [ 816 posts ]  Reply to topicPost new topic 
Coding Help, Questions and Issues relating to coding
Author Message
 [jp]
 Post subject: Coding Help
PostPosted: Thu Jan 31, 2013 4:54 pm 
User avatar
Yeah, I don't Even...
Member
[*]
[*]
[*]
[*]
[*]

[*]
Well since it looks like it's a good Idea this'll be a general "coding help" thread,
This is help reduce the clutter of topics thatask questions relating to code of some sort, and it'll actually help people get the help they need.
The jist is that we'll help you out with coding issues or questions, but won't program what your doing for you or it'll defeat the purpose of helping people learn.

So we have some people that are quite able to use coding so I'll list differet people that feel they're able to help, also feel free to say something if you want to be listed here, as it may be useful in the future:
Spoiler:


Original Post:
Spoiler:


Last edited by Shadow Kami on Thu Jan 31, 2013 5:55 pm, edited 2 times in total.
_________________
Spoiler:
 
Top
Offline 
 User page at mfgg.net
 
 [us]
 Post subject: Re: GM/Gamemaking Support Thread? Opinions?
PostPosted: Thu Jan 31, 2013 5:08 pm 
User avatar
C# Programmer
Member
[*]
[*]
[*]
[*]
I think thats a good idea. I don't use gamemaker, but i can help out with other questions relating to stuff like c#, java, directX*, openGL*, or xna. I know not many here even use what i mentioned, but if a question ever comes up, i can help.

*i have experience using directX, but i didn't go deep into it. I probably have intermediate experience with it. I don't use it anymore since im learning sfml and openGL for crossplatform support. I don't use xna anymore either.

*im learning openGL right now but its a bit similar to directX.

_________________
MFGG TKO (scrapped) - Animations
Image
"It feels that time is better spent on original creations" - Konjak
Focus on the performance, the idea, not the technical bits or details - Milt Kahl
 
Top
Offline 
 
 
 [ca]
 Post subject: Re: GM/Gamemaking Support Thread? Opinions?
PostPosted: Thu Jan 31, 2013 5:13 pm 
User avatar
следующая игра скоро будет
Dairy
[*]
[*]
[*]
[*]
[*]

[*]
[*]
[*]
[*]
[*]

[*]
[*]
[*]
[*]
[*]

[*]
[*]
[*]
[*]
[*]

[*]
[*]
[*]
I personally think this would be a fine idea - it would put an end to any cluster of threads asking simple questions about code and whatnot, and it would be rather helpful to people in need of answers to said questions, among other things.

Actually, a general "Coding Help" megathread wouldn't be a bad idea, honestly.

Also, for future reference, this thread should be in the Developer Discussion, not the General Chat :)

 
Top
Offline 
 User page at mfgg.net
 
 [us]
 Post subject: Re: GM/Gamemaking Support Thread? Opinions?
PostPosted: Thu Jan 31, 2013 5:15 pm 
User avatar
C# Programmer
Member
[*]
[*]
[*]
[*]
I agree with the general coding help thing. A recent question was about how to have the player move ontop of a moving platform. Thats less of a gm question and more of a design one.

_________________
MFGG TKO (scrapped) - Animations
Image
"It feels that time is better spent on original creations" - Konjak
Focus on the performance, the idea, not the technical bits or details - Milt Kahl
 
Top
Offline 
 
 
 [jp]
 Post subject: Re: Coding Help
PostPosted: Thu Jan 31, 2013 5:25 pm 
User avatar
Yeah, I don't Even...
Member
[*]
[*]
[*]
[*]
[*]

[*]
M'kay I'll report this so a mod can move it over.

Edit: Well, since it's been moved, it is in the right place now.

So if anyone needs coding help, or such post your questions and/or issues here.

_________________
Spoiler:
 
Top
Offline 
 User page at mfgg.net
 
 [br]
 Post subject: Re: Coding Help
PostPosted: Thu Jan 31, 2013 5:51 pm 
User avatar
fka "Doc"
Member
[*]
[*]
[*]
[*]
[*]

[*]
[*]
[*]
[*]
[*]

I can code a bit of GMK myself. I'm not a pro, but I can easily spot out errors and miscalculations.

_________________
Image
 
Top
Offline 
 User page at mfgg.net
 
 [zz]
 Post subject: Re: Coding Help
PostPosted: Sat Feb 02, 2013 10:39 am 
User avatar
Thanks Gato!
Member
[*]
[*]
[*]
[*]
Does anyone know how to make a fight like it in Game Maker? Right now all my boss does is shoot fireballs and can be hurt via stomping. Anyways, I need the object to act like this:
•It can't go in the same pipe/hole.
•Once the object leaves the room, it pops up in an other pipe/hole in a few seconds.
That's pretty much it, so I hope someone could help me. If needed, I'll send you what I have coded.

_________________
I support:
Spoiler:

---
 
Top
Offline 
 User page at mfgg.net
 
 [jp]
 Post subject: Re: Coding Help
PostPosted: Sat Feb 02, 2013 10:47 am 
User avatar
Yeah, I don't Even...
Member
[*]
[*]
[*]
[*]
[*]

[*]
Well if you need a basic Idea on how to do it, you can use variables to set states, you can use those states to identify wether it's rising up out of the pipe, going down into it, etc.

You can use a simple randomiser script that has a certain amount of variables per pipe, and you can make each of the dummies and lemmy select a "pipe" using the variables, and then make it so that it can only select a pipe if theres not a dummy or a lemmy object present.

TBH I feel it's bettr to explain what id does instead of copying and pasting as it'll help the person who's code it is get better at coding.
If your unable to use this explaination as a guild feel free to ask for more specifics.

_________________
Spoiler:
 
Top
Offline 
 User page at mfgg.net
 
 [us]
 Post subject: Re: Coding Help
PostPosted: Thu Feb 07, 2013 11:14 pm 
User avatar
Expert Vampire Hunter
Member
I have come up against a pair of fomidiable problem. I am trying to get GMFMOD to cooperate with the engine I'm using and so far I managed to get it to play the titlescreen BGM properly and it also plays the intended maptheme as well but here's the rub.

1.The Titlescreen BGM continues to play and plays over the Hubmap BGM
2.When I load a savefile with the engine I'm working on there will be no music whatsoever.

Gentlemen, I have reasons to assume that the problem is more complicated then I can handle, due to the fact that I implemented GMFMOD properly and I'm still running into these problems. If anyone, anyone whatsoever is willing to help me I would gladly send a copy of my dev files so you can see the problem for yourself since my words only give a gist of the problem. I believe the culprit lies in the way the engine itself is coded.

 
Top
Offline 
 
 
 [us]
 Post subject: Re: Coding Help
PostPosted: Thu Feb 07, 2013 11:17 pm 
Member
[*]
[*]
[*]
[*]
[*]

[*]
[*]
[*]
[*]
[*]

[*]
[*]
As for the titlescreen music continuing to play, are you stopping the instance? FMOD uses sound instances, like variable=FMODfunctionname(derpy); where variable is the instance you'll want to keep track of either globally or in a persistent object. I'll take a look at your thing and try to help if you want; I'm really experienced with it.

_________________
"talk about dang ol' this ain't scientific rockets, man"
Spoiler:
Bibby Team - Nice little place. Give it a try.
 
Top
Offline 
 User page at mfgg.net
 
 [us]
 Post subject: Re: Coding Help
PostPosted: Fri Feb 08, 2013 12:26 am 
User avatar
Expert Vampire Hunter
Member
@Miles: I could be mistaken but I could have sworn that I sent you a PM.

 
Top
Offline 
 
 
 [us]
 Post subject: Re: Coding Help
PostPosted: Fri Feb 08, 2013 12:34 am 
Member
[*]
[*]
[*]
[*]
[*]

[*]
[*]
[*]
[*]
[*]

[*]
[*]
I got it, and fixed it. Just gotta write up a change log so I can explain what's up; I'll send a PM shortly.

_________________
"talk about dang ol' this ain't scientific rockets, man"
Spoiler:
Bibby Team - Nice little place. Give it a try.
 
Top
Offline 
 User page at mfgg.net
 
 [us]
 Post subject: Re: Coding Help
PostPosted: Sat Feb 09, 2013 6:38 pm 
User avatar
meow
Member
[*]
[*]
[*]
[*]
[*]

[*]
[*]
[*]
How do you make things happen after a sound sample is done playing?

 
Top
Offline 
 User page at mfgg.net
 
 [sc]
 Post subject: Re: Coding Help
PostPosted: Mon Feb 11, 2013 12:41 am 
User avatar
Member
[*]
[*]
[*]
[*]
[*]

[*]
[*]
[*]
[*]
Sort of depends what you're doing and how you want to do it, but you could use 'if sound_soundplaying' to check if it's playing, and if it isn't, make the object do something.
Alternatively, you can set an alarm and time it so it goes off when the sound is done.

EDIT: I'm assuming you're using gamemaker. If not, I'm sure the concept would transfer.

_________________
ref
 
Top
Offline 
 User page at mfgg.net
 
 [us]
 Post subject: Re: Coding Help
PostPosted: Mon Feb 11, 2013 8:31 am 
User avatar
meow
Member
[*]
[*]
[*]
[*]
[*]

[*]
[*]
[*]
Thanks.

 
Top
Offline 
 User page at mfgg.net
 
 [zz]
 Post subject: Re: Coding Help
PostPosted: Sun Mar 17, 2013 4:28 pm 
Member
[*]
[*]
[*]
[*]
[*]

[*]
[*]
[*]
[*]
[*]

[*]
I'm looking for a code that allows single-sprite animations. That is, having all your sprites in one, instead of having massive globs of sprite resources and such. I know several Sonic engines use this, but they tend to be really complicated and.....confusing.

 
Top
Offline 
 User page at mfgg.net
 
 [zz]
 Post subject: Re: Coding Help
PostPosted: Sun Mar 17, 2013 4:33 pm 
User avatar
Lucario and/or Braixen = best avatar
Member
[*]
[*]
[*]
[*]
[*]

Wiiboy4ever wrote:
I'm looking for a code that allows single-sprite animations. That is, having all your sprites in one, instead of having massive globs of sprite resources and such. I know several Sonic engines use this, but they tend to be really complicated and.....confusing.

Dragezeey's latest engine (dragezeey engine 7) has single-sprite-animations for each of his powerups. How about you try looking into that?

_________________
Games I've made:

Spoiler:

Fangame(s) I support:
Spoiler:


You can find me on:
Image Image Image Image Image


These are my Smashers of choice:
Image
 
Top
Offline 
 
 
 [ca]
 Post subject: Re: Coding Help
PostPosted: Sun Mar 17, 2013 5:09 pm 
User avatar
The Quantifiably Quip-tic QC Dude
Member
[*]
[*]
[*]
[*]
[*]

[*]
[*]
[*]
[*]
[*]

[*]
[*]
[*]
[*]
[*]

[*]
Wiiboy4ever wrote:
I'm looking for a code that allows single-sprite animations. That is, having all your sprites in one, instead of having massive globs of sprite resources and such.

Coincidentally, I was looking for something like this as well. While scouring various threads at the GMC forums, I eventually came across this neat little thing:

Create Event:
Syntax: [ Download ] [ Hide ]
Using gml Syntax Highlighting
image_speed = 0; // Set this to 0 since we're going to be controlling the speed of the animation
anim_frame = 0; // The current frame of our custom animation
anim_speed = 0.25; // The animation speed, which replaces image_speed.
anim_seq = "00|01"; // This is a string containing the actual sequence of your custom animation, so in this case, there's two frames, subimage 24 and 25.  The "|" character is there for readability sake and will be removed in the step event.  This is the variable you will change to switch animations.  You need to have each frame as two characters though, so if, for instance, you wanted to cycle through the first three subimages, you would set this as "00|01|02"
 

Step Event (any one will do):
Syntax: [ Download ] [ Hide ]
Using gml Syntax Highlighting
var max_frames, seq;

seq = string_replace_all(anim_seq, "|", ""); // This removed the "|" character to allow the program to read the animation sequence easier

max_frames = string_length(seq) / 2; // This gets he number of frames in the animation by taking the length of the string and dividing it by the number of digits for the subimages, in this case 2.

// The following block of code cycles the animation frames
if (anim_speed >= 0)
{
    // Cycle frame forward
    anim_frame = (anim_frame + anim_speed) mod max_frames;
}
else
{
    // Cycle frame backward
    anim_frame = ((anim_frame + anim_speed mod max_frames) + max_frames) mod max_frames;
}

image_index = real(string_copy(seq, 1 + (2 * floor(anim_frame)), 2)); // Finally, this pulls the correct subimage from the sequence based on the current frame of our custom animation.
 

This topic is where I found the code, by the way.

_________________
<insert funny sig image here>

Image Refs - Something new's gonna show up here, I just know it! - DeviantArt - YouTubeImage
???!, 10%
 
Top
Offline 
 User page at mfgg.net
 
 [zz]
 Post subject: Re: Coding Help
PostPosted: Sun Mar 17, 2013 5:34 pm 
Member
[*]
[*]
[*]
[*]
[*]

[*]
[*]
[*]
[*]
[*]

[*]
@SMBM77: Oh, but I thought he didn't release his engine 7?

@Yoshbert: work's wonderfully, thanks!

 
Top
Offline 
 User page at mfgg.net
 
 [us]
 Post subject: Re: Coding Help
PostPosted: Fri Mar 29, 2013 10:28 pm 
Member
[*]
[*]
[*]
[*]
[*]

[*]
[*]
[*]
[*]
[*]

[*]
How do you do a falling sprite? GM DnD please.

_________________
Spoiler:
 
Top
Offline 
 
 
« Previous topic | Next topic »
Display posts from previous:  Sort by  
Go to page 1, 2, 3, 4, 5 ... 41  Next  [ 816 posts ]  Reply to topicPost new topic 


Who is online

Users browsing this topic: No registered users and 2 guests


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
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group