15 June 2022, 00:29 | #2221 | |
Registered User
Join Date: Dec 2013
Location: Auckland
Posts: 3,548
|
Quote:
--- Latest check in: * Fix for czorny, keyboard "On Press" events were not working. Some other fixes related to keyboard handling too. * The maximum speed a camera will follow a player at is now hard coded to 8. It's a little difficult to explain but in general, since the game is double buffered, a camera that was following the player at (for example) a speed of 12 would travel 24 pixels between buffers, triggering more than a single row or column of tiles to be redrawn. I had made the assumption that no one would make a game needing a character to move faster than 8, and for the most part that was true. However, it's common for players to have a jump speed above 8, which means for a fraction of a second the camera is moving faster than 8, and this can cause frame skips. So now the camera will follow up to 8 pixels per frame until fully caught up with the player. |
|
18 June 2022, 15:51 | #2222 |
Registered User
Join Date: May 2022
Location: STOCKTON ON TEES
Posts: 12
|
Hi all,
Finally had some time to play around with Scorpion again and I have a question. I`m looking at making a yoyo weapon similar to superfrog. I've got it so when the player presses fire button the player stops moving performs the anim to fire the yoyo and the yoyo fires out and comes back before the player starts moving again. What I'm aftter though is for the player to not be able to move while holding fire and then when pushing a direction the yoyo fires out in that direction. Main thing I'm wanting is to override the jump commands while fire is held. Could anyone give me some tips on how to achieve this please? |
18 June 2022, 16:10 | #2223 | |
Registered User
Join Date: Apr 2019
Location: UK
Posts: 305
|
Quote:
|
|
18 June 2022, 16:17 | #2224 |
Registered User
Join Date: May 2022
Location: STOCKTON ON TEES
Posts: 12
|
|
18 June 2022, 16:28 | #2225 |
Registered User
Join Date: Apr 2019
Location: UK
Posts: 305
|
From lots of tedious testing of Duckstroma I've found the following things to watch out for.
Too low Y buffer can cause random block to be redrawn in wrong place, triggered by current block that you change to none. Was at 13, raised to 16 for a 192 resolution screen. Talkpad sometimes displayed even though didn't activate it with a key press. I was using the talkpad for pause indicator, but removed it and used a wait for fire instead. Unsure if Scorpion bug or WinUAE CD32 pad anomally, as it happens rarely. |
18 June 2022, 16:41 | #2226 |
Registered User
Join Date: Apr 2019
Location: UK
Posts: 305
|
Maybe using the Actor tab attack/on attack event, use the project tabs Commands on press/release. If that doesn't work you'll need variables and an on attack that runs an event with the If control1fire==Button_Down.
|
18 June 2022, 17:15 | #2227 |
Registered User
Join Date: May 2022
Location: STOCKTON ON TEES
Posts: 12
|
Thanks again UltraNarwhal you gave me enough to work it out.
On Attack I change to a different actor that has no movement speed. The animation for the directions performs the movement for firing the yoyo and the last frame calls the code to actually create a projectile that reaches a limit and then returns to the player. I have a frame timer on the attack actor which checks to see if control1fire!=Button_down and if true it returns to the original actor. Only problem I'm having now is that when it returns to the original actor the actor falls off the screen. |
19 June 2022, 13:30 | #2228 | |
Registered User
Join Date: Dec 2013
Location: Auckland
Posts: 3,548
|
Quote:
I'm not 100% sure of the cause of the original actor falling off screen, but if the collision box isn't perfectly aligned between two different actors, it could cause unexpected issues with collisions. --- Latest experimental update: - Fixed bug reported on the discord, when using autofire it would play an idle animation between shots. To be honest I'm not sure why I added the lines that broke autofire animation (basically preventing the re-trigger of an animation that was already playing), but if anything relates to animation suddenly breaks, please let me know. - Editor improvement, the "notes" column about variables will show in popups. - Number of copper instructions (for the last generated game display) are reported on exit. This can be used for optimizing the copper list for memory and performance reasons. - ECS Border Blank is back.. kind of. It's now a variable you can turn on which will enable that ECS/AGA only feature, and will reduce the size of a copperlist if it can (and you can quantify the difference using the feature above). But it's one of those things you should only use when you really know what you're doing - I wouldn't recommend using it in builds aimed at OCS computers, or even non-emulated Amigas (when running on a real Amiga, you may experience an issue where part of the border is distractingly darker than other parts) |
|
19 June 2022, 16:37 | #2229 | |
Registered User
Join Date: Aug 2014
Location: Montevideo
Posts: 59
|
Quote:
|
|
20 June 2022, 11:40 | #2230 | |
Registered User
Join Date: Dec 2013
Location: Auckland
Posts: 3,548
|
Quote:
--- Latest experimental update: - Some minor fixes for performance when rendering maps in the map tab (still needs an overhaul to make it faster) - Reworked animations a little more. Reverted the animation fix from the last check in, but added some fixes so an idle frame shouldn't trigger when autofire is held down. - Fixed minor issue where the attack delay setting was inaccurate by a single frame - "Actor_FrameDelay" (etc) is now exposed to codeblocks. This is just how many game frames are left until the animation frame is expired and the next one triggers. A possible use case would be, if you've got a single frame animation that destroys the actor when the animation is finished, you could shorten or lengthen the amount of time until that happens. - "Actor_AttackDelay" (etc) is now exposed to codeblocks. This only really works with player types, it's the number of frames until the player can attack again. You could maybe use this to extend or shorten the length of time until the player can attack again if you need to. |
|
20 June 2022, 16:38 | #2231 |
Registered User
Join Date: Aug 2014
Location: Montevideo
Posts: 59
|
|
21 June 2022, 04:48 | #2232 |
Registered User
Join Date: Dec 2013
Location: Auckland
Posts: 3,548
|
Great! Glad to hear it.
--- Latest experimental update sponsored by BitBeamCannon! There's a new "find references" button on the actor tab. With that, you can quickly find all references in code to a specific actor - it'll show a pop-up box with all codeblocks that refer to the actor in one form or another. Selecting the entry will open the codeblock in question, and highlight all of the lines that refer to that actor. Note that it uses the "Description" line on the codeblock tab to find the references. So, for example, if you had a comment that mentioned the actor type, it would be highlighted. It's only the first revision so there may be some unexpected complications. Also it's a framework that could be expanded in future (for example, to find which levels contain a specific block, or which actors have a specific animation) |
21 June 2022, 10:30 | #2233 |
Registered User
Join Date: Jul 2018
Location: Scotland
Posts: 851
|
Fantastic stuff earok. Love all these quality of life improvements, the copy/paste addition for one has saved so much time. Anything that helps cross reference one part of the project with another is absolutely superb and supremely helpful!
I think there is so much redundant stuff in my code but am half afraid to delete it sometimes in case it causes an unexpected issue Last edited by acidbottle; 21 June 2022 at 10:39. |
21 June 2022, 15:13 | #2234 |
Registered User
|
Issue 236 of Retro Gamer will have a feature on the Scorpion Engine...
|
22 June 2022, 10:27 | #2235 |
Registered User
Join Date: Jul 2018
Location: Scotland
Posts: 851
|
|
23 June 2022, 11:43 | #2236 |
Registered User
Join Date: Dec 2013
Location: Auckland
Posts: 3,548
|
Cheers merman and acidbottle! I've made a note to import a copy here.
--- Latest experimental update is a fairly substantial one: - Fixed various bugs found with platforming (in particular, the "IsOnPlatform" variable being set when the head of a platformer character collides upwards with something) - "Find References" button in actor tab expanded to find map references (so it'll tell you which maps have the specific actor, and at which specific tile). - The "Play Sound" feature has been expanded to allow playback at any specific period. Period's a little hard to explain, it's kind of the inverse of frequency but it's a number that gets plugged straight into the Paula chip. If a sample is imported at 11025hz, it'll play back at about note F2 by default. You can select a note from the dropdown list or enter any period number you wish if you need super fine grained control. (Note that, normally a sound won't trigger while that sound was already playing, but changing the period will allow the sound to be retriggered immediately). (Also note that changing a sound's period will make that the default period if you play the sound again without specifying a period) - Not well tested, but the new "LastSoundPlayedFrames" variable contains how many frames the last sound will take to play. So that can be used by chaining yields or waits together e.g. something like Play Sound sample1 Yield for "LastSoundPlayed" frames Play Sound sample2 - New "tone" sample has a musical keyboard that you can walk across, demonstrating the new "Period" feature. (Edit: Forgot to mention, the new sound features are sponsored by BitBeamCannon) |
24 June 2022, 13:26 | #2237 |
Registered User
Join Date: Dec 2013
Location: Auckland
Posts: 3,548
|
Latest experimental update's another fairly big one:
- Fixed a few bugs relating to period (in particular, leaving period as 0 should just leave the period alone and not cause a glitch!) - A few tweaks to level loading that hopefully don't break anything (might be slightly faster compiling) - The big feature is the ability to load the background for a different level at run time. There are a whole lot of caveats to be aware of: * It'll always take a second or two to load the next background (I'll think about a solution to this) * Swapping parallax displays will be glitchy (though it seems just swapping copper skies will cause no glitches. Might be possible to do something like swap between copper and parallax without glitches). If you really need to swap parallax at runtime, I'd recommend doing so in a "cave" where the parallax is entirely covered by tiles. * Memory usage overall may be higher (since the parallax graphics and level graphics are counted separately now, the overall memory needed will be the size of the largest parallax AND the largest level graphics together) |
26 June 2022, 16:23 | #2238 |
Registered User
Join Date: May 2022
Location: STOCKTON ON TEES
Posts: 12
|
Is it possible to make a platform on half a tile rather than the full tile?
I have a block which is smaller than the full tile and I want to use it as a platform but when I add the platform property to the blockit acts as though the whole tile is a platform not just the bottom half. The tile is transparent and I tried adding a collision box in tile editor. |
26 June 2022, 17:21 | #2239 | |
Registered User
Join Date: Apr 2019
Location: UK
Posts: 305
|
Quote:
|
|
26 June 2022, 23:28 | #2240 |
Registered User
Join Date: May 2022
Location: STOCKTON ON TEES
Posts: 12
|
Thank you UltraNarwhal.
I was wondering if this was the best place to request advice or if there is somewhere else people use where some of my qiestions have already been answered? |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
2D Platformer Engine | carrion | Coders. Blitz Basic | 27 | 06 June 2019 14:35 |
New Chaos Engine!! | arpz | Retrogaming General Discussion | 75 | 31 August 2013 22:20 |
F/S Warp engine 32 mb | tabuhuso | MarketPlace | 0 | 24 February 2012 15:13 |
PC Engine CD | TodaysForgotten | Retrogaming General Discussion | 47 | 13 May 2009 23:57 |
Scorpion (100% working) | andreas | request.Old Rare Games | 13 | 01 August 2003 08:48 |
|
|