Page 1 of 4 1 2 3 4 >
Topic Options
#114615 - 10/28/08 03:58 PM Snippet Manager
MuddyMole


Registered: 07/14/08
Posts: 53
I'm posting this here because it got quite a good reception at the Daily Click, and it was suggested to me that people here might like it also.

It's is a little app I've made to help organize and edit snippets - small, reusable pieces of code you use in games.

For example; It includes a snippet to find the angle between two objects. All you need do, is enter the names of the objects, as they appear in MMF, and it generates the code, ready to copy and paste straight in.

I've included quite a lot of pre-made snippets, and made it very easy to add your own. Hopefully people will use this, and share their snippets with other clickers.

I'm considering an add-on pack, so if anyone can think of some useful snippet ideas, please let me know.


Attachments
Snippet Manager.zip (162 downloads)


Top
#114622 - 10/28/08 04:19 PM Re: Snippet Manager [Re: MuddyMole]
dragonguy


Registered: 04/03/08
Posts: 1836
Loc: england
This is a great resource, can you include my cloaking device as a snippet?
_________________________
I'm the Orignal Dragonguy!
Maltar Draco

I like Games!

Liji isn't good with pets

Top
#114626 - 10/28/08 04:27 PM Re: Snippet Manager [Re: dragonguy]
wizkidweb


Registered: 01/06/07
Posts: 447
Loc: USA
I don't think that can be added as a snippet because it involves multiple events.

But I may be wrong.
_________________________
When you do things right, people won't be sure you've done anything at all.
- God (Futurama)

Top
#114627 - 10/28/08 04:28 PM Re: Snippet Manager [Re: dragonguy]
Nickydude


Registered: 03/24/07
Posts: 253
Loc: I'm right here!!
This is a great idea! As a beginner to DBP, I'll certainly find this useful.
_________________________
~MMF2 User Latest Build~
Winner of the MMF2 Developer Book!
All the best,
Nickydude

Top
#114629 - 10/28/08 04:51 PM Re: Snippet Manager [Re: Nickydude]
MuddyMole


Registered: 07/14/08
Posts: 53
Dragonguy: sorry, but wizkidweb is right. That's not really how it works.

I've had to fix a small bug.

The latest and all future updates can be downloaded here:
http://www.create-games.com/download.asp?id=7421


Edited by MuddyMole (10/28/08 05:29 PM)

Top
#114645 - 10/28/08 07:33 PM Re: Snippet Manager [Re: MuddyMole]
dragonguy


Registered: 04/03/08
Posts: 1836
Loc: england
Originally Posted By: The Daily Click
It makes it much quicker and easier to create complicated expressions such as for the distance/angle between two objects.
Expressions eh?
How about this then?
I have trouble remembering that one.
_________________________
I'm the Orignal Dragonguy!
Maltar Draco

I like Games!

Liji isn't good with pets

Top
#114665 - 10/29/08 07:45 AM Re: Snippet Manager [Re: dragonguy]
MuddyMole


Registered: 07/14/08
Posts: 53
Yes, I should be able to add that.
There'd be a few possible options on how to do it though.

Are objectx/y/z three alterable values that every object has?
If so, it could be made so you, the user, enter the name of the object, and the letter of the alterable value which holds each of these. If they're going to be stored in counters or something, then it would be more complicated.

I'm assuming camerax/y/z a the same for all objects, so more likely to be held in a counter or something.

Top
#114676 - 10/29/08 09:29 AM Re: Snippet Manager [Re: MuddyMole]
dragonguy


Registered: 04/03/08
Posts: 1836
Loc: england
Originally Posted By: MuddyMole
Are objectx/y/z three alterable values that every object has?
Yes each invidual non-camera active object has these alterable values.
Originally Posted By: MuddyMole
I'm assuming camerax/y/z a the same for all objects, so more likely to be held in a counter or something.
You assume correctly, camera x/y/z is the position of the camera if 3rd person or the position of the player if 1st person so they may be counters or alterbale values of the player/camera object.
_________________________
I'm the Orignal Dragonguy!
Maltar Draco

I like Games!

Liji isn't good with pets

Top
#114692 - 10/29/08 11:33 AM Re: Snippet Manager [Re: dragonguy]
Nifflas


Registered: 06/30/06
Posts: 1523
How did I miss this? This program is genius, it will come in extremely handy! Here's my suggestion for an addition, I often use this expression for particle instability:

Filename: Number in range relative to center.ini
[Details]
Description=This generates a random number within a range relative to a center value.
[Function]
String=>Center<+Random(>Range<*2+1)->Range<
Variable1= >Center<
Variable2= >Range<


Edited by Nifflas (10/29/08 11:53 AM)

Top
#114695 - 10/29/08 12:06 PM Re: Snippet Manager [Re: Nifflas]
MuddyMole


Registered: 07/14/08
Posts: 53
Thanks a lot Nifflas. I shall definitely add that if you don't mind. I'm very glad to see you've grasped how it works and how to make your own snippets.

For now, I'll put your credit in the description. It occurs to me that there should probably be an "author" item in the details group. I'll have to add that later though.

Dragonguy - I am working on yours. Shouldn't take too long.

Top
Page 1 of 4 1 2 3 4 >


Site Links
Forum Index

Home Page
Online Store
Tutorials
Download Center
French Forum
Quick File Links
Multimedia Fusion 2
Updates - build 248
Standard Version
Developer Version

Extension Packs
Bonus Pack 1
Bonus Pack 2
z33z Extension Pack
LIJI Extension Pack

The Games Factory 2
Latest Update - build 248
Community Links
Madword Arcade

GameBuilder
Fusion2Developers
The Daily Click

Extensions
Neatwares Extension List
Extension Updater (FusionUpdater)
Zoom Gamer
Click Chat
6 People are chatting