-=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- (c) WidthPadding Industries 1987 0|532|0 -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=-




Forklift_Fred

Number accuracy or snapping objects together

29th May 2008

I'm wondering about splines myself actually. The slot method is working to a point, it is the turning that is starting to give me headaches. I thought using CollisionNY() would give me a good angle to turn through and it was if I doubled it but then when t*snip*


Forklift_Fred

Number accuracy or snapping objects together

28th May 2008

Well, I'm off work tomorrow so apart from a trip to the dentist I should get some reasonable time with this. I'm actually quite happy with the way the track is laying out now so all I really need to worry about is closing any silly gaps, probably using the*snip*


Forklift_Fred

Number accuracy or snapping objects together

28th May 2008

Sorry, I read your code and almost fainted with fear :D
I wasn't sure about the idea of positioning bottom left at 0,0,0 and the code meant nothing to me... Looking at it calmly now and referring to the help files I think I see what it's doing. I might lo*snip*


Forklift_Fred

Number accuracy or snapping objects together

27th May 2008

I could certainly make it as one mesh but the idea was to have a track editor. The overhang idea isn't all bad but the biggest problem wouldn't be solved, that of misalignment. I could easily close a gap with an extra straight section but if they are not i*snip*


Forklift_Fred

Number accuracy or snapping objects together

26th May 2008

Sounds like a bad idea to try and make it in Blitz then... :D
OK, well this has all given me things to think about so thank you all.
I guess I'll either tray and fail or I'll cheat and succeed...
I'll let you know...
Cheers


Forklift_Fred

Number accuracy or snapping objects together

26th May 2008

Thanks but Blitz is what I have, it's what I use. It's not so much the calculations that are the problem because I've pre-calculated myself so using an alternative language for that part is irrelevant, I'm giving it more accurate numbers.
I think I'm figh*snip*


Forklift_Fred

Number accuracy or snapping objects together

26th May 2008

I'm including an example so you can see what I'm dealing with but the theory is simple (aren't they always?!)
I'm trying to make a Scalextric based slot car racer. I've made the track pieces precisely in 3ds format and done the maths required to position *snip*


Forklift_Fred

Discussion point: read one long line or multiple short lines?

24th May 2008

No! :D
Only the 20 or so in my list get stored, the 600 are read, processed and forgotten. Nothing's hardcoded anyway, that's the whole point.


Forklift_Fred

Discussion point: read one long line or multiple short lines?

23rd May 2008

What Andy said is basically what I'm doing and it's all over in a matter of seconds anyway. It probably takes longer to open up the executable than it takes to run the code but it saves a couple of minutes from doing it manually :D
The idea is to read in *snip*


Forklift_Fred

Discussion point: read one long line or multiple short lines?

23rd May 2008

This is a question that doesn't really need an answer as the implementation I'm looking for is minimal and decided on by other factors, but I wondered what everyone thought of the matter...
It's also one that can be tested and so on, but I can't be bother*snip*


Forklift_Fred

WM009 - Blocks

23rd May 2008

As a starting point... I'm reminded of one of my "1 Hour Challenge" games back in December.
[code];;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; ;;
;; One Hour Challenge ;;
;; ================== ;;
;; Take 2: Catch A *snip*


Forklift_Fred

Constructor and arrays in types?

15th May 2008

I've done a couple of CSV related things for work. Like Orion Pax, they were for specific reports that we receive but recently I added my own CSV into the mix on 2 separate occasions. One of them reads a report and removes any lines that contain the specif*snip*


Forklift_Fred

What your Greatest Achivement in Video games?

7th May 2008

[quote=MikeT]I completed Manic Miner without losing a life, back in the 80's that is[/quote]
My instinct took me to the very same game, only it was on Richard Nobel's re-make 10 years ago. Not so much finishing the game on one life but playing it so much *snip*


Forklift_Fred

Speedometer.

28th April 2008

Very crude but demonstrative...
[code]Graphics 640,480
SetBuffer BackBuffer()
speed=0
While Not KeyHit(1)
Cls
Text 20,20,"Use Up and Down deys to change speed : "+speed
If KeyDown(200) And speed<200 Then speed=speed+1
If KeyDown(208) And speed>*snip*


Forklift_Fred

Newbie in need of help

28th April 2008

Couple of key pointers there, worth highlighting I think.
you should only need to call flip once at the end of your main loop.
This caught me out several times early on. Exception to the rule (because there always are!) would be stand alone functions, ma*snip*


Forklift_Fred

Newbie in need of help

26th April 2008

You aren't specifying which images to check. the full parameters should be:
ImagesOverlap( image_1_handle, image_1_x, image_1_y, image_2_handle, image_2_x, image_2_y )
However, if you have transparencies in your amages and want to be more precise then yo*snip*


Forklift_Fred

Connecting Lines

21st April 2008

It's Ghostbusters isn't it?
Don't cross the streams! :D


Forklift_Fred

Connecting Lines

21st April 2008

OK, I copied the X1...X4 as set out in the Wiki page and it works. A little inaccurate due to pixel resolution but it works:
[code]Graphics 640,480
x1#=10
y1#=50
x2#=150
y2#=100
x3#=50
y3#=20
x4#=60
y4#=100
Color 255,0,0
Line x1,y1,x2,y2
Color *snip*


Forklift_Fred

Connecting Lines

21st April 2008

I think your answer could be HERE but again, you'd need to translate it to code...
I tried but seem to have failed:
[code]If collision=1 Then
colx=((((coord(1,1)*coord(2,2))-(coord(1,2)*coord(1,2)))*(coord(3,1)-coord(4,1)))-((coord(1,1)*coord(2,1))*((*snip*


Forklift_Fred

#147 - The Minesweeper Challenge

16th April 2008

I like the sound of "Mr Sock Finding Man" :D
I might have a think about this one...
... Hang on, shouldn't that 9 be an 8? :p


Forklift_Fred

#146 - The Card Challenge

16th April 2008

That was a fast week! I was going to re-work (and potentially finish!) a game I started in JavaScript years ago (but snap was my first thought :D )
I just didn't get beyond looking through my old code and wondering whether I'd ever finish my card images..*snip*


Forklift_Fred

Another type like question

10th April 2008

Hmmm... I've played with the example for PickedEntity() and it is doing what I expected... Quite simply in this case it's turning the alpha down to 0.5
Obviously you'll need to change the textures to an image you have...
[code]; PickedEntity Example
; *snip*


Forklift_Fred

Another type like question

10th April 2008

How about EntityName()?
When you assign an entity to a PLAYERTYPE for example, use
NameEntity(entity,"PLAYER")
then when you have picked it, use something like
If EntityName(PickedEntity()) = "PLAYER" etc
to check through the different types of types *snip*


Forklift_Fred

Issues with Blitz in Vista?

3rd April 2008

The drive swapping is impressive isn't it? :D
It doesn't report if there isn't a disk in a CD/DVD drive though... maybe a quick If (number_of_files=0) would be worth adding. It reads "." and ".." as files/folders so if it's an empty folder it will still c*snip*


Forklift_Fred

Issues with Blitz in Vista?

2nd April 2008

It's not checking for hidden or system attributes. The 'Users' folder is listed separately. Again, I take your point. It's not something I had considered. I'll add it to the to-do list.
In the newer version I posted there is now a button to go up a level *snip*

Newer Posts More - Older Posts