Search found 1178 matches

by Bugala
Thu Oct 23, 2014 4:52 pm
Forum: Newbie questions
Topic: Any way to get vacant ID for insertLayer? (id = InsertLayer)
Replies: 6
Views: 7257

Re: Any way to get vacant ID for insertLayer? (id = InsertLa

Good, good, very good. This will make it much easier for me. I can simply do the program so that it keeps each layers co-ordinates exactly where they supposedly are, even when out of screen, and then i just simply go through every layer and draw them.
by Bugala
Wed Oct 22, 2014 5:41 pm
Forum: Newbie questions
Topic: Any way to get vacant ID for insertLayer? (id = InsertLayer)
Replies: 6
Views: 7257

Re: Any way to get vacant ID for insertLayer? (id = InsertLa

Ah, thanks. That should do in this case. Anotehr Layer related question. Say I have a 10 thousand layers, and only 30 of them are actually drawn to screen. How does Hollywood treat the rest 9970 Layers? By other words, If screens size is 1980x1080, and i draw a layer to position 2500, 1600 (outside ...
by Bugala
Tue Oct 21, 2014 11:16 pm
Forum: Newbie questions
Topic: Any way to get vacant ID for insertLayer? (id = InsertLayer)
Replies: 6
Views: 7257

Any way to get vacant ID for insertLayer? (id = InsertLayer)

Heres what I am trying to do:

Code: Select all

ID = InsertLayer(0, #BRUSH, 1, x, y)
SetObjectData(#LAYER, ID, "name", data)
However, InsertLayer doesnt return the ID number when creating it.

Is there any way to get this done this way, or do I have to keep track of next vacant Layer ID myself?
by Bugala
Tue Oct 21, 2014 2:35 pm
Forum: General programming
Topic: How to save multidimensional position in to SetObjectData??
Replies: 1
Views: 3416

Re: How to save multidimensional position in to SetObjectDat

This the solution I made, decided to post these two functions for the rest of you too, since they can be useful to others as well: Function p_SetCellsPosition(list, position) cell = GetCell(list, position) cell.position = position EndFunction Function p_GetCell(list, position) Local cell Local d Loc...
by Bugala
Mon Oct 20, 2014 4:31 pm
Forum: General programming
Topic: How to save multidimensional position in to SetObjectData??
Replies: 1
Views: 3416

How to save multidimensional position in to SetObjectData??

Im not sure this is even the best solution, but so far it seems like the best solution that comes to my mind. Thing is, I will have info, that will be stored upon unknown dimensions. Means that for example "info" can some times reside in List[1][2].info, while sometimes it might reside in ...
by Bugala
Sun Oct 05, 2014 9:02 pm
Forum: Tutorials
Topic: Simple PONG-game tutorial for Beginner Coders
Replies: 29
Views: 44803

Re: Simple PONG-game tutorial for Beginner Coders

I noticed the UNTIL example where it is supposed to print numebrs from 00 to 99, have an error in it. It is actually printing numbers starting from 10, instead of 00.
by Bugala
Sat Oct 04, 2014 10:42 pm
Forum: Tutorials
Topic: A beginners guide for Amiga Forum?
Replies: 9
Views: 17802

Re: A beginners guide for Amiga Forum?

One thought, looking it 24 hours later, that came to my mind, would be to instead of doing such thorough explanation, to perhaps trust the reader understands how things works alrady from examples. I could perhaps try make the teaching part so that I would first for example explain IF - THEN, and aft...
by Bugala
Fri Oct 03, 2014 7:13 pm
Forum: Tutorials
Topic: A beginners guide for Amiga Forum?
Replies: 9
Views: 17802

Re: A beginners guide for Amiga Forum?

Seems my tutorail became much longer than i meant. But is this still acceptable etc?
viewtopic.php?f=11&t=925
by Bugala
Fri Oct 03, 2014 7:12 pm
Forum: Tutorials
Topic: Simple PONG-game tutorial for Beginner Coders
Replies: 29
Views: 44803

Simple PONG-game tutorial for Beginner Coders

This is Hollywood Tutorial for people who dont know programming in advance. Instead of traditional way of explaining, this guide will aim at teaching you through simple game examples. In this first tutorial, we will go through some basics, and make a simple PONG game. I wont explain you in detail ho...
by Bugala
Wed Oct 01, 2014 1:26 pm
Forum: Tutorials
Topic: A beginners guide for Amiga Forum?
Replies: 9
Views: 17802

Re: A beginners guide for Amiga Forum?

Couple of questions. If i understood correctly, you are planning to have it in a magazine, which brings the question of how much (about) space is there. target Words or characters amount? Then comes the question of how exactly should it be done. There is the traditional way of teaching basics like p...