Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - LRH

#21
Forgot to mention to you Gurok, but you were correct in assuming I'm using love2d.

If either of you are interested, the result of this:

Code: lua

snspr = love.graphics.newImage("SPR/snow.png")
flake_array = {}




function spawn_flakes()
	for i = 0, 100, 1 do
	flake_array[i] = {}
	flake_array[i].x = math.random(800)
	flake_array[i].y = math.random(600)
	end
end

function flake_update(dt)
	for i = 0 ,100, 1 do
		flake_array[i].x = flake_array[i].x + math.random(-50, 50) * dt
		flake_array[i].y = flake_array[i].y + 1
			if flake_array[i].y >= 600 then
				flake_array[i].y = 0
			end
	end
end

function flake_draw()
	for i = 0 ,100, 1 do
		love.graphics.draw(snspr, flake_array[i].x, flake_array[i].y)
	end
end


and placing the functions in their respective "Main.lua" functions results in this:
https://www.youtube.com/watch?v=jUnlYE316s4

Thanks for the help! I'm already understanding tables (and using them as arrays) much better.
#22
Wow, this community never ceases to amaze...

Thank you both, Gurok and Crimson.  I'm on the run right now but I'll definitely have some fun tinkering to do later!
#23
I have a question about programming in Lua- if this is a reasonable place to do so, that is.

I'm really excited to learn a language from the bottom up, since my only experience with programming before now has been limited to AGS script.  I'm working along pretty well.  What I've got right now is basically a background being drawn, with a player drawn on top of that.  I've also made a little function to check whether the arrow keys are being pressed, and if so, the player moves in the corresponding direction.  Super basic stuff.

However, in learning how to use tables, I'm finding myself having a hard time grasping some of the concept.  I've been doing something like this in order to assign the player's variables:

Code: ags


player = {}
player.x = 200
player.y = 300



and later making something like

Code: ags


function update_player()

    if isPressed("right") then
    player.x = player.x + 5
    end 
end


Oversimplified for the sake of example, of course.  But in any event, thinking ahead, I'd like to be able to enumerate something contained within a table, and the concept is a bit too ethereal for me to grasp right now.  What I mean to say is, what if I wanted to program something like snow falling? I know what the general concept is but I lack the knowledge to execute it.

What I imagine is having a variable number of snowflakes (so that I can decide later on how much snow I want there to be) which spawn across the top of the screen and float downward, then, each flake has its own sub-set of X,Y coordinates, and there's a bit of code which finds a random number to increase or decrease the X value by, so that the flakes drift a bit.

So!  After that long-winded nightmare...does anyone know how to accomplish what I'm talking about? :tongue:
#24
Quote from: Mandle on Fri 12/09/2014 07:06:30
HAHAHA!!! That was great! Thanks for the laugh!

Thank you :grin:
#25
Ah- yeah, I've figured that out quickly. It doesn't look too good unless it's it decent resolution!
#26
Selmiak - heheh, thanks!

Retro - Anime Studio 10 Debut (If you're actually looking to buy, get it on Amazon.  The company that makes it sells it at a 60% discount there for some inexplicable reason.)
#27
The Rumpus Room / My silly/stupid animation.
Thu 11/09/2014 18:57:43
Recently, I bought some animation software for the sake of making smooth animation of sprites-

While that was my intention, I found that I instantly started to amuse myself with it in other ways, mostly by making some absurd animations that I put on YouTube.  Anyway, I did this one yesterday, and I just thought I'd put this here:

https://www.youtube.com/watch?v=F59UYuIzZEo
#28
Ooh. I actually quite liked glitchhikers myself! I'll be interested to see what this MAGS brings around.  I think I might try to get in during October.
#29
Stupot-
Thanks for the kind words and the heads up in regard to the glitch! I'll do my best to get version 1.2 up by the end of the week to fix that.

Edit: Uploading 1.2 now! Anyone who downloads it by the time they read this should have the proper version.
#30
Thanks, BSP! As far as your hidden section, that's definitely something I'll take into consideration for the next game. 
#31
Apologies for the bump, but there's some semi-important news:

After a very lengthy outage, I finally go my websites hosted again.  It's pretty bare-bones for now, but at least the download link is back:
http://lowreshero.com/tomes-series/

I've edited the games page to reflect the same.
#32
Thanks, Sunny :)
#33
Hey, thanks to you both! I can't tell you how much I appreciate the feedback.  I'll definitely begin a sequel once I stop being so swamped by work.
#34
I really liked this, too! It was really clever to let use discover that we were responsible for breaking the fourth wall and not (directly) prompting us to do so. I've been away from the community for a while.  It was nice to come back to something that so perfectly captures the charm of MAGS.
#35
Tomes: Layne's Discovery, is a relatively short (took beta testers between 45 minutes and 2 hours) and story-driven game that revolves around a young man with a litany of personal problems.  Through investigations and a fair amount of seeing his way through internal crises, Layne eventually stumbles upon the Tomes, and a new mystery begins. 

This is the introductory chapter of what will hopefully be a new series of mine.  You may also notice that I've chosen to use a new moniker for this release.  I don't really have a good reason for doing this.  Just kind of wanted to "relaunch" myself. 

In any case, enjoy, and please feel free to let me know what you think of it. Here's a handful of screenshots:







The game's page is here if you would like to download: http://www.adventuregamestudio.co.uk/site/games/game/1788/
#36
Ah, well good to know. Thank you for all the responses. I do apologize if this was discussed recently before. I ran a quick search, but I must have used the wrong language.
#37
Hello everyone.

Assuming it can be done, does anyone know how I would go about deconstructing the data files AGS creates when it builds the files? For example, is it possible to deconstruct a .vox file into the individual music files, or possible to get the background images from the executable? There's a few games I made that are missing the actual resource files I used to build them, so I want to see if I can recover them this way.

Thanks in advance for the help.
#38
AGS Games in Production / Tomes
Sat 20/04/2013 22:12:33
An incoherent mess that's constantly drinking in a pathetic attempt to escape reality, Layne has somehow found himself in an odd position.

After failing at his other endeavors, Layne follows around a local crime scene unit in order to help the only way he can; he keeps an eye out for detail. Drunk or sober, his talents remain unmatched. He's been to hundreds of scenes and lead the local police force onto new leads on countless occasions, but lately, Layne is having trouble. He's never quite okay, but this is different. Recently, it's been as though someone or something has been dictating Layne's life... although, realistically, he never had much control over it before.

Paranoia and claustrophobia set in hard as Layne struggles to keep going about his daily life.





Development is in the fairly early stages, but these posts tend to get me into gear. I'll be sure to update this post as things move forward.
#39
Good ideas, thank you.
#40
Well, while there is some throttling from external graphics sources through thunderbolt, someone on Tom's Hardware (unfortunately I cannot find the link or the benchmark test right now) showed that going through something like this: https://secure1.sonnettech.com/index.php?cPath=139_141&osCsid=2bb8ef09e717de5bacba018dd23b583b offers a *substantial* boost over the current HD3000. It doesn't matter that much, though, because at $500 for the chassis alone, I'd be better off just building a budget gaming computer.

The only thing I'm doing that's demanding is some gaming. Most semi-modern titles are basically unplayable, even with graphics settings at minimums and the resolution lowered.
SMF spam blocked by CleanTalk