people playing: 116, servers online: 37, games played: 144,623,815 Top Player: Cicada3301

  Toribash Community » Toribash » Mods » Third party
Register FAQ General Rules Community
Reply
 
Thread Tools Display Modes
Old Jul 25, 2008   #1
Juntalis
NON-EXISTING!
 
4th Dan Black Belt
Join Date: Aug 2006
Posts: 2,378
Clan: NO



[CONC]Standalone mod editor


My math is failing somewhere, but when I get it working, you guy can expect a 2D editor first, then a 3D editor when I learn a bit of OpenGL. Cross platform, etc.

Also, someone tell me where my math is wrong:

Code:
x1 = env's x position - (env's width /2) x2 = env's x position + (env's width /2) y1 = env's y position - (env's height /2) y2 = env's y position + (env's height /2) for(y=y1;y>y2 - 1;y++){ draw(x1,y,black); draw(x2,y,black); } for(x=x1;x>x2 - 1;x++){ draw(x,y1,black); draw(x,y2,black); }

Last edited by Juntalis; Jul 25, 2008 at 05:39 AM..
Juntalis is offline   Reply With Quote
Old Jul 25, 2008   #2
Cindermomo
disregard this I suck cocks
 
6th Dan Black Belt
Join Date: Apr 2008
Posts: 3,548
Clan: RAWR



This looks great, im a new mod maker so i will find this helpful.

[RAWR]
========ROYALRAINBOW========
Cindermomo is offline   Reply With Quote
Old Jul 25, 2008   #3
Blam
Now I know my abc's!
This user title is the property of SkulFuk.
 
4th Dan Black Belt
Join Date: Apr 2007
Posts: 5,510
Clan: bncy



could we see what its like on another mod, for comparison?
:D
Blam is offline   Reply With Quote
Old Jul 25, 2008   #4
Jok
Senior Member
 
White Belt
Join Date: Nov 2006



I'm pretty sure the problem is in the axis directions.

X grows from left to right, and Y from top to bottom, most likely.

(GG stealing my project, nub. :[)
Jok is offline   Reply With Quote
Old Jul 25, 2008   #5
Skazz
Senior Member
 
3rd Dan Black Belt
Join Date: Jul 2007
Posts: 904



Nope...

X grows from right to left, from tori's perspective. (behind him, that is)
Y grows from uke to tori.
Z grows from bottom to top.
I'm back, I think... :)
Mod Pack

Last edited by Skazz; Jul 25, 2008 at 12:33 PM..
Skazz is offline   Reply With Quote
Old Jul 25, 2008   #6
Jok
Senior Member
 
White Belt
Join Date: Nov 2006



Originally Posted by Juntalis View Post

Code:
x1 = env's x position - (env's width /2) x2 = env's x position + (env's width /2) y1 = env's y position - (env's height /2) y2 = env's y position + (env's height /2) for(y=y1;y>y2 - 1;y++){ draw(x1,y,black); draw(x2,y,black); } for(x=x1;x>x2 - 1;x++){ draw(x,y1,black); draw(x,y2,black); }

Skazz, I'm talking about that code which draws 2D, hence not mentioning a Z coordinate.
Jok is offline   Reply With Quote
Old Jul 25, 2008   #7
Skazz
Senior Member
 
3rd Dan Black Belt
Join Date: Jul 2007
Posts: 904



Forgive this poor discalculic fool.
I'm back, I think... :)
Mod Pack
Skazz is offline   Reply With Quote
Old Jul 25, 2008   #8
avwave
north west north east
 
7th Dan Black Belt
Join Date: Sep 2007
Posts: 3,460



the code is fine if it was reading xyz coords , but there are rotational values for the objects in the mod.

that screwed the math up
...
avwave is offline   Reply With Quote
Old Jul 25, 2008   #9
Brain112
Senior Member
 
3rd Dan Black Belt
Join Date: Dec 2007
Posts: 1,112



ZOMG i asked for this on the website of the brotherhood!
does that mean ur in teh brotherhood?
.
Brain112 is offline   Reply With Quote
Old Jul 25, 2008   #10
Blam
Now I know my abc's!
This user title is the property of SkulFuk.
 
4th Dan Black Belt
Join Date: Apr 2007
Posts: 5,510
Clan: bncy



perhaps he is, or perhaps you think alike?
:D
Blam is offline   Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 10:04 PM.




Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
ragdoll fighting game physics fighting game ragdoll fighting physics funmotion joints martial arts karate pc mac free game turn based game