Search found 4098 matches

by TMC
Fri Mar 06, 2015 8:16 am
Forum: Game Discussion
Topic: Is it unwise to use calculus?
Replies: 9
Views: 1871

Hamsterspeak doesn't have a negation operator. Write -1*x or 0--x instead.

BTW, you can use fixed point numbers to represent fractional values. It's doable but annoying and requires being careful. I like to multiply everything by 1000, and write 3 500 for 3.5, -1 000 for -1 etc.
by TMC
Fri Mar 06, 2015 8:08 am
Forum: Q&A Discussion
Topic: Out of curiosity: Checking byte
Replies: 6
Views: 1705

I would like to add a way to read and write pixels to sprites. I don't want to allow reading and writing to the screen, because it'll be awful for backwards compatibility when we switch to hardware accelerated graphics.
by TMC
Fri Mar 06, 2015 5:18 am
Forum: Game Discussion
Topic: Void Crypt - testers wanted
Replies: 33
Views: 7958

In general when you want to save the current palette, reset it, and then restore it later you could use Giz's script. But in this specific case it doesn't matter too much whether a light flicker is cancelled (that is, just calling resetpalette,updatepalette). You always need to call updatepalette or...
by TMC
Thu Mar 05, 2015 9:44 am
Forum: Q&A Discussion
Topic: How to make hero revert to "walking" sprite once key release
Replies: 6
Views: 1604

script,SprintToggle,begin If (KeyVal (Key:S) >> 1) then ( if (CheckTag (Sprinting)) then (SetTag (Sprinting,off) else (SetTag (Sprinting,on) ) end This isn't going...
by TMC
Thu Mar 05, 2015 9:07 am
Forum: Q&A Discussion
Topic: Moving slices to make an attack.
Replies: 4
Views: 1392

In order to check for collision of the arrow slice with a specific NPC you can write "slice collide(attacksl, get npc slice(npc ref))". However this will check whether the NPC slice and the attack overlap by even a single pixel, which is probably far too wide. So what you can do is create ...
by TMC
Wed Mar 04, 2015 8:21 am
Forum: Game Discussion
Topic: C++ Hath Happened
Replies: 2
Views: 1416

It works! It has certain similarities to certain games :) Good start.

I'm using 64 bit Slackware. But it won't run on a 32-bit system and generally I'd advise providing source code so that people everywhere can compile and run it.
by TMC
Tue Mar 03, 2015 11:36 am
Forum: Q&A Discussion
Topic: Any suggestion on how to make this script more fluid?
Replies: 5
Views: 1491

Turning off bbcode isn't necessary, but you need to turn off html if your script contains the < and > characters. I'd never considered the case of changing the party while the heroes are moving. However, looking at the code it looks like doing that should be no problem, as the swapped hero takes the...
by TMC
Tue Mar 03, 2015 6:28 am
Forum: Game Discussion
Topic: 7DRL
Replies: 22
Views: 4575

Nicely done! IIRC you didn't create a thread for it, instead posting everything about it in the Hype up your game thread. I remember because I was actually meaning to create a thread about it.

I didn't enter that year and won't this year either; bad timing. Hopefully in 2016.
by TMC
Tue Mar 03, 2015 12:21 am
Forum: General Discussion
Topic: Hi doods
Replies: 11
Views: 3828

Ah, ok. Actually, something quite similar to that is in the recently released Winged Realm. Except that that's only used in a couple places, and it's a 3D maze.
by TMC
Tue Mar 03, 2015 12:08 am
Forum: Q&A Discussion
Topic: Hitting switches in a certain sequence script
Replies: 8
Views: 1892

That can be written more simply as append number(1, numberToAdd) though it's worth saying that when using sprintf you can write more compact scripts using a couple tricks: string sprintf(1, $2="%s%d", 1, numberToAdd) However, for this script, I think you would actually write something like...
by TMC
Mon Mar 02, 2015 3:56 pm
Forum: Q&A Discussion
Topic: Big rolling boulder -- what type of sprite to use?
Replies: 8
Views: 2310

After you pass a value in a variable to a command, changing the variable never has an effect, because you're passing the value stored in the variable (e.g 6) rather than the variable itself. But the solution is simple: just call "move slice to" inside the loop. Rollspeed is the number of t...
by TMC
Mon Mar 02, 2015 3:48 pm
Forum: General Discussion
Topic: Hi doods
Replies: 11
Views: 3828

I can't remember a singing shark, but there was a trio of potato-shaped thingies honking a tune!

What is a hopping maze? (I don't remember this either) I assume it's not a maze where you can freely jump over the walls.
by TMC
Sun Mar 01, 2015 3:18 pm
Forum: Game Discussion
Topic: Hans Stinkman 2015: A Cash Dollar Contest
Replies: 139
Views: 28302

Two-minute reviews! Gun pigs: Classic sheamkennedy aesthetic. But I couldn't really play it alone and see how it is. I'm not really sure how you're meant to dodge anything though, other than stepping off your side (which is penalty free). Took me a while to realise that this has tile-base movement, ...
by TMC
Sun Mar 01, 2015 3:10 pm
Forum: General Discussion
Topic: OHRRPGCE Magnets! for EVERYONE!
Replies: 84
Views: 19785

I'm speechless.
by TMC
Sun Mar 01, 2015 3:08 pm
Forum: General Discussion
Topic: Hi doods
Replies: 11
Views: 3828

3D animation! I should have expected that, considering you were showing off a couple of your animations. "isn't working yet"? Where's this leading? :) You can try using a gamepad. I suspect it will work, but not well. I don't quite know, I don't have a joystick to test with. Supposedly the...