Search found 352 matches

by amyren
Thu Oct 26, 2023 12:29 pm
Forum: Tutorials
Topic: Block- Man Script
Replies: 16
Views: 8947

Re: Block- Man Script

Removed some redundant conditions. The reason for using +12 and +28 for the conditions is the size of the boxes. Both BM an BX coordinates are the upper left corner of the box. So when collision apears at the left and top side you must consider the width/height of BM for the comparisation, for the r...
by amyren
Wed Oct 25, 2023 10:05 pm
Forum: Tutorials
Topic: Block- Man Script
Replies: 16
Views: 8947

Re: Block- Man Script

This seem to work @DISPLAY{WIDTH = 800, HEIGHT = 600, MODE = "WINDOWED"} ;Create the window CreateBrush(1, 16, 16, #GREEN) ; CREATE BLOCK-MAN CreateBrush(2, 32, 32, #GRAY) ; CREATE OBSTICLE BM_Xpos = #CENTER ; Set initial X-position BM_Ypos = #CENTER ; Set initial Y-position SPEED = 3 ; Se...
by amyren
Wed Oct 25, 2023 12:53 am
Forum: Newbie questions
Topic: How to SaveSnapshot with coordinates
Replies: 5
Views: 3258

Re: How to SaveSnapshot with coordinates

Thank you, CropBrush did the job :)
by amyren
Tue Oct 24, 2023 12:01 pm
Forum: Newbie questions
Topic: How to SaveSnapshot with coordinates
Replies: 5
Views: 3258

How to SaveSnapshot with coordinates

This will save the whole window SaveSnapshot(f$, #SNAPDISPLAY, #IMGFMT_PNG) But how to save just a part of the display, like an area specified by x, y, width, height? SaveSnapshot does not apear to support coordinates GrabDesktop does support coordinates, but that would only be usable if using a ful...
by amyren
Mon Oct 16, 2023 4:37 pm
Forum: Newbie questions
Topic: Understanding the typical hollywood loop
Replies: 11
Views: 7667

Re: Understanding the typical hollywood loop

It was honestly a really great learning experience that has got me a solid basis of Hollywood, I've finished my paint program and submitting into the amiga tool jam right now. :) I've now been making my own tiling engine with page/chunk loading and unloading and I worked on a simple racing game on ...
by amyren
Mon Oct 16, 2023 2:36 pm
Forum: Newbie questions
Topic: Understanding the typical hollywood loop
Replies: 11
Views: 7667

Re: Understanding the typical hollywood loop

This could be an excellent candidate for a post in the tutorial section, "How to make a basic paint program"
by amyren
Fri Oct 13, 2023 10:40 am
Forum: Newbie questions
Topic: Table field 1 not initialized
Replies: 1
Views: 2613

Re: Table field 1 not initialized

Ok, sleeping on it helped:)
I see know why this error comes.
I am removing the table item while still in the FOR NEXT loop, so the next loop will throw the error.
by amyren
Thu Oct 12, 2023 8:26 pm
Forum: Newbie questions
Topic: Table field 1 not initialized
Replies: 1
Views: 2613

Table field 1 not initialized

Am I doing something wrong here or could this be a bug? This code will quit with the following error: Error in line 8 (Unnamed4.hws): Table field 2 was not initialized! To reproduce, select and ban first user on the list, then do the same for the second user. Then select first user again and remove ...
by amyren
Fri May 05, 2023 11:31 am
Forum: Newbie questions
Topic: How to get variable from a textentry
Replies: 8
Views: 1038

Re: How to get variable from a textentry

Thanks, thats exactly what I was thinking of :D
by amyren
Thu May 04, 2023 1:55 pm
Forum: Newbie questions
Topic: How to get variable from a textentry
Replies: 8
Views: 1038

Re: How to get variable from a textentry

@jPV
Thanks for your example. Would it be possible to use that triggervalue to fill in the textentry?
Eg. if the user writes the first letters of a certain word, you update the textentry with the full word.