Rather Complicated Problem

You must understand the Game Editor concepts, before post here.

Postby Fuzzy » Fri Nov 10, 2006 3:19 am

Lets try this again.. Hopefully Dillo or someone else can spot any errors..

Code: Select all
double angWrap(double ang){return (double)abs((((long)(ang*100))%35999)*0.01);}


Yikes. Imbedded heaven! But it should work with both positive and negative, as well as floating point numbers and %! test please!
Mortal Enemy of IF....THEN(and Inspector Gadget)

Still ThreeFingerPete to tekdino
User avatar
Fuzzy
 
Posts: 1068
Joined: Thu Mar 03, 2005 9:32 am
Location: Plymostic Programmer
Score: 95 Give a positive score

Postby DilloDude » Sat Nov 11, 2006 12:37 am

Still a few problems: negative numbers return the absolute value(-20 returns 20 instead of 340), and a bit is added (365 returns 4.01 instead of 4, and 720 returns 0.02 instead of 0)
Image
User avatar
DilloDude
 
Posts: 866
Joined: Tue Jan 24, 2006 9:51 am
Location: Nyerellion
Score: 58 Give a positive score

Postby DilloDude » Sat Nov 11, 2006 1:41 am

Hedfone wrote:try breaking the huge picture up into several screen length pictures and making them seperate actors. yeah, it's a pain, but...what can ya do? :D

Or use one tiled actor with either large sections or smaller tiles that are more useful.
Image
User avatar
DilloDude
 
Posts: 866
Joined: Tue Jan 24, 2006 9:51 am
Location: Nyerellion
Score: 58 Give a positive score

Postby Sgt. Sparky » Sat Nov 11, 2006 6:52 pm

but u cannot even load the animation onto game editor to make it a tile
Image
Random Links:
viewtopic.php?p=19474#19474
Right now (10/14/2009) I'm working on some C++ projects, but I might be able to help if you have some Game Editor questions. :)
User avatar
Sgt. Sparky
 
Posts: 1850
Joined: Sat Oct 07, 2006 5:28 pm
Location: Somewhere out there, beneath the pale blue sky...
Score: 236 Give a positive score

Previous

Return to Advanced Topics

Who is online

Users browsing this forum: No registered users and 1 guest