Search found 36 matches

by phipslk
Sun Apr 12, 2026 2:40 pm
Forum: General programming
Topic: table dimensioning...
Replies: 3
Views: 1131

Re: table dimensioning...

cool, thank you both! I think I got it now.
by phipslk
Sat Apr 11, 2026 9:34 pm
Forum: General programming
Topic: table dimensioning...
Replies: 3
Views: 1131

table dimensioning...

I want to initialize a table that looks like this:

player[number].row[number].x=100
player[number].row[number].y=199

but I get errors, if I do

player={}

and then add values like

player[1].row[2].x=100

anyone who can point me to my error? better to use dim? but how?
by phipslk
Sat Dec 21, 2024 5:07 pm
Forum: Newbie questions
Topic: ListRequest goes behind the screen, can i get it front?
Replies: 10
Views: 36694

Re: ListRequest goes behind the screen, can i get it front?

perhaps try ActivateDisplay(id) before calling the screen mode requester?
Or use

Code: Select all

CreateDisplay(id, {Mode = "ModeRequester", Active=True})
by phipslk
Tue Dec 17, 2024 6:08 pm
Forum: General programming
Topic: Writing my own texteditor...
Replies: 3
Views: 14694

Re: Writing my own texteditor...

thanks, I've noticed that too. My main problem with the IDs is, that I can't find them out. When givin "Nil" as ID when creating an object, it should get an automatic ID, but somehow I can't put them in an array for later delete them, when the user types backspace.
by phipslk
Sat Dec 07, 2024 7:10 pm
Forum: General programming
Topic: Writing my own texteditor...
Replies: 3
Views: 14694

Writing my own texteditor...

I have the idea to create a LetterMaker, like these for C64 and Amiga existed. You type in a text, and all your moves get recorded and replayed in the final exe like a notice, the reader can watch, how you typed. But I have problems with the "Delete/Backspace" routine. I just don't get how...
by phipslk
Mon Nov 25, 2024 7:43 pm
Forum: General programming
Topic: Fixed width fonts
Replies: 5
Views: 11140

Re: Fixed width fonts

I think this uses a font requester from the operating system underneath. For example, the font requester in MorphOS does have an option to show only Fixed Width fonts (or bitmap fonts or unicode fonts etc.). So FontRequest() with Hollywood on MorphOS does have this option already. I think on AmigaO...
by phipslk
Mon Nov 25, 2024 7:42 pm
Forum: General programming
Topic: Fixed width fonts
Replies: 5
Views: 11140

Re: Fixed width fonts

plouf wrote: Sat Nov 23, 2024 8:48 pm but maybe, as a workaround, you can compare FontWidth("IJ1") with FontWidth("OWM") to see if it equal ?
that would be a nice command, FontWidth(). I take dimensions of a TextObject with the letter and GetAttribute() for size measuring
by phipslk
Sat Nov 23, 2024 8:33 pm
Forum: General programming
Topic: Fixed width fonts
Replies: 5
Views: 11140

Fixed width fonts

Is it possible to tell FontRequest() only show fixed witdth fonts?
by phipslk
Fri Sep 20, 2024 6:14 pm
Forum: General programming
Topic: Platformer / Jump & run
Replies: 5
Views: 6038

Re: Platformer / Jump & run

Here is how it should behave. that's how it should work. Did you code that in hollywood? plouf, it's as jalih said. it's for gravity, so the player falls always down, otherwise he would stay "in the air". I didn't do the collision routines, just the player movement, so it may interfere no...
by phipslk
Thu Sep 19, 2024 4:40 pm
Forum: General programming
Topic: Platformer / Jump & run
Replies: 5
Views: 6038

Platformer / Jump & run

I am trying to code a platformer with hollywood-mal and I have some troubles with it. Just trying now the player movement. Left/Right works well :-) I ported the code from pico8-lua, but it doesn't work as expected. If I press "up" to jump, it reacts delayed. Any hints for a beginner? @DIS...