Sprites on a Map?

Discuss how to use the Ren'Py engine to create visual novels and story-based games. New releases are announced in this section.
Forum rules
This is the right place for Ren'Py help. Please ask one question per thread, use a descriptive subject like 'NotFound error in option.rpy' , and include all the relevant information - especially any relevant code and traceback messages. Use the code tag to format scripts.
Post Reply
Message
Author
User avatar
quacksapup
Regular
Posts: 48
Joined: Fri Jan 04, 2013 3:43 pm
Projects: "Heartbeat" (In Progress)
Contact:

Sprites on a Map?

#1 Post by quacksapup » Fri May 03, 2013 3:30 am

Hi guys,

I want to know if it is possible to have little chibi sprites like this:
sample.png
sample.png (2.27 KiB) Viewed 1431 times
...running around on a map (probably an imagemap) where they can travel around and talk to people (but after first clicking on them). Like, once you've clicked on a person to chat them, the basic Ren'Py dialogue box pops up. Kinda like this, but it doesn't have to be as fancy:
Screen shot.png
If this can be done, is it possible to control the sprite's movements via arrow keys? I think this is pretty complex... does anyone have any information on this? If arrow keys are out of the question, that's totally fine with me. I'm okay with point and click controls if that's what I have to go with.

First, I must know if a sprite sheet (like the first one I showed you above) can even be used in Ren'Py. Is it possible to use a sprite sheet in Ren'Py, or does it have to be "one sprite at a time"? If sprite sheets can be used, how would I approach the coding for one of these little guys walking around on an imagemap?

Like I said, I'm aware that this is a complex topic. So if there are other references you could point me to, I'd be more than happy to look at them.

Thank you, everyone, for all the help!
-Q

User avatar
LVUER
King of Lolies
Posts: 4538
Joined: Mon Nov 26, 2007 9:57 pm
Completed: R.S.P
Location: Bandung, West Java, Indonesia
Contact:

Re: Sprites on a Map?

#2 Post by LVUER » Fri May 03, 2013 4:35 am

Sorry since this is not the answer you seek... but I really want to ask, why do you use RenPy? It seems for your kind of game, RPG Maker would be a more suitable (and easier) option. Game Maker would still be better than RenPy in your case.
"Double the princesses, quadruple the fun!" - Haken Browning (SRW-OG Endless Frontier)

DeviantArt Account
MoeToMecha Blog (under construction)
Lolicondria Blog (under construction) <- NSFW

User avatar
nyaatrap
Crawling Chaos
Posts: 1824
Joined: Mon Feb 13, 2012 5:37 am
Location: Kimashi Tower, Japan
Contact:

Re: Sprites on a Map?

#3 Post by nyaatrap » Fri May 03, 2013 5:19 am

It's possible - just you need to learn about python/pygame (not just ren'py). You can do it with other engines in other languages, like LUA, C#, tjs e.t.c. Anyway, it's just a programming knowledge matter.
If you want to skip learning one of those script languages, use RPG maker or something, not ren'py.

User avatar
kankan
Regular
Posts: 80
Joined: Tue Mar 06, 2012 1:47 am
Contact:

Re: Sprites on a Map?

#4 Post by kankan » Fri May 03, 2013 5:31 am

Ah, Zenonia! Rare to see somebody who plays that.

I did something like this using renders, which can take multiple keys for input to change how you interact with the game...I believe this was the first time I got it working (it's horribly messy; I've changed it a lot since then, but this was the basic idea). You can do it without pygame; I personally didn't like using it at first, though it makes this kind of stuff a lot easier. Python is definitely a required thing to learn.

That being said, if you're not really into programming, I'd definitely agree with the others. RPGmaker is great if you don't mind buying it, and Gamemaker isn't half bad.

User avatar
quacksapup
Regular
Posts: 48
Joined: Fri Jan 04, 2013 3:43 pm
Projects: "Heartbeat" (In Progress)
Contact:

Re: Sprites on a Map?

#5 Post by quacksapup » Fri May 03, 2013 3:12 pm

Thanks guys for your input. I'll look into RPG Maker, although I don't know if that's exactly what I want. And I've never played Zenonia before, I just found that picture online to help you guys see what I kinda want here. I just want this type of function for the maps in my game, not for the whole entire game. What if can it be as simple as having a background picture of my map and having my chibi sprite person go to that location with the point-and-click feature?

apricotorange
Veteran
Posts: 479
Joined: Tue Jun 05, 2012 2:01 am
Contact:

Re: Sprites on a Map?

#6 Post by apricotorange » Fri May 03, 2013 7:50 pm

You can do what you're describing with screen language and image maps (http://www.renpy.org/doc/html/screens.html). If you actually want to show the character walking around when the player clicks a location, it's not too hard with a bit of Python and ATL (http://www.renpy.org/doc/html/atl.html), but you'll probably have trouble if you're not comfortable with writing code.

You can use cropping (LiveCrop/im.Crop http://www.renpy.org/doc/html/displayables.html, the crop ATL property http://www.renpy.org/doc/html/atl.html) to handle sprite sheets.

Post Reply

Who is online

Users browsing this forum: Bing [Bot]