|
Post by roolandoo on Apr 15, 2021 9:27:18 GMT
Hi, I need to set cursor keys as default control keys in MPAGD, but from "Keyboard Controls" it won't let me choose them.
Does anyone know how to do it?
Greetings.
|
|
|
Post by oss003 on Apr 15, 2021 13:08:41 GMT
You mean the PC keyboard cursor keys? That's not possible ..... Only the ZX Spectrum keys are mapped into MPAGD to keep it compatible. What you can do is try to map keys to joystick controls in a Spectrum emulator or map your PC joystick to the cursor keys.
|
|
|
Post by roolandoo on Apr 15, 2021 13:17:15 GMT
No, no, oss003 What I'm doing is a game for MSX ... and there were the cursor keys as the usual controls
|
|
|
Post by oss003 on Apr 15, 2021 13:40:07 GMT
Ok .... maybe jltursan can answer you because the compiler handles that and I don't have the source of the compiler. Normally all MSX keys should be mapped in MPAGD.
BTW you can use numbers in the AGD file in DEFINECONTROLS. It will probably not be programmed in WinAGD.
|
|
|
Post by oss003 on Apr 15, 2021 13:45:45 GMT
I noticed that your Spectrum La Reliquia game (nice game....) is ported to the MSX. Did you use the standard MSX engine or a patched one because I want to port Metamorphosis to the MSX but everything is way to fast and some behaviour is different ......
|
|
|
Post by roolandoo on Apr 15, 2021 14:57:19 GMT
Thanks oss003. Yes, for "La Reliquia" I used the standard MSX engine. But it is true that I had to work a long time to control the speeding and some things that did not work correctly due to the differences between systems.
|
|
|
Post by oss003 on Apr 15, 2021 15:03:46 GMT
How did you control the speeding ...... I tried skipping 1 frame but then the sprites are moving inconsistent
|
|
|
Post by jltursan on Apr 15, 2021 15:21:36 GMT
Standard MSX controls (IIRC, cursor keys + SPACE, "M", "N" as buttons 1,2 and 3) are enabled just by not defining a DEFINECONTROLS sentence. Simply delete it.
The simplest way to achieve this is using the same timers the game must use. If you're doing something when a var reachs a value, simply double the value to get an aproximate behaviour. Of course, if an event is triggered each ZX frame, you'll need to add a var as a timer to control this in the MSX version.
I think the easiest way is having a set of timers each one working at a decreasing speed: /2, /3, /4, etc. and tying each event to the needed one.
|
|
|
Post by roolandoo on Apr 15, 2021 15:23:02 GMT
Well, I basically had to slow down in ANIMATE and change sprites that were twice as fast in Spectrum. But the sprites with "standard" speed I didn't need to touch them.
On the other hand, if you play in PAL mode, everything goes a bit slower.
|
|
|
Post by roolandoo on Apr 15, 2021 15:32:54 GMT
jltursan , Yes, I know that. But I need to use the cursor keys for control but I want to be able to define the other keys myself. Sí, eso lo sé. Pero necesito usar los cursores para el control pero las otras teclas las quiero poder definir yo.
|
|
|
Post by jltursan on Apr 15, 2021 16:17:26 GMT
You mean SPACE, "M" and "N"?
¿Te refieres a SPACE, "M" y "N"?
|
|
|
Post by roolandoo on Apr 15, 2021 16:32:35 GMT
I would need this:
UP:↑ DOWN:↓ LEFT: ← RIGHT:→ Fire1: Space Fire2: H Fire3: Opcion1: 1 Opcion2: 2 Opcion3: 3 Opcion4: 0
|
|
|
Post by jltursan on Apr 15, 2021 16:43:44 GMT
Mmm, I see, right now the cursor keys are not reachable by key code; so you can't define them in a DEFINECONTROL sentence. They're understood by the DEFINEKEY command but I guess you don't want that. It could be a good idea to add support for the cursor keys to the DEFINECONTROL itself. Let me check what can I do...
|
|
|
Post by roolandoo on Apr 15, 2021 16:59:38 GMT
Thanks
|
|