RPG Overworld Engine
Forum rules
Do not post questions here!
This forum is for example code you want to show other people. Ren'Py questions should be asked in the Ren'Py Questions and Announcements forum.
Do not post questions here!
This forum is for example code you want to show other people. Ren'Py questions should be asked in the Ren'Py Questions and Announcements forum.
Re: RPG Overworld Engine
i downloaded it but when i try opening the script is says xe4r is wrong or something
- Mole-chan
- Veteran
- Posts: 333
- Joined: Thu Aug 27, 2009 12:46 am
- Completed: DUAEL, Escape from Puzzlegate
- Projects: A Bird with Gold-Mended Wings
- Deviantart: mole-chan
- Skype: mole-chan
- itch: moleworks
- Contact:
Re: RPG Overworld Engine
xe4r? I haven't heard of that. Can you show me a picture of your error? or otherwise copy the text exactly? Because that doesn't sound like anything I programmed.Mayche wrote:i downloaded it but when i try opening the script is says xe4r is wrong or something
Re: RPG Overworld Engine
well i think my internet is wrong or something like that, even if i show you what's wrong it's gonna be on swedish but it says katalog name xe4r is wrong or something like that i will see if my internet is wrong (i've been having problems whit it lately)
- Mole-chan
- Veteran
- Posts: 333
- Joined: Thu Aug 27, 2009 12:46 am
- Completed: DUAEL, Escape from Puzzlegate
- Projects: A Bird with Gold-Mended Wings
- Deviantart: mole-chan
- Skype: mole-chan
- itch: moleworks
- Contact:
Re: RPG Overworld Engine
I would still appreciate a screenshot or traceback. Even using a translator on that would be more helpful than trying to just guess what is wrong.Mayche wrote:well i think my internet is wrong or something like that, even if i show you what's wrong it's gonna be on swedish but it says katalog name xe4r is wrong or something like that i will see if my internet is wrong (i've been having problems whit it lately)
If you think it might be a bad download, then I would try and download it again. But if that doesn't work, please give me the screenshot or traceback.
Re: RPG Overworld Engine
Well now it does work i updated renpy and it works now thank you for the replies^^
-
- Newbie
- Posts: 13
- Joined: Thu Jan 01, 2015 8:31 am
- Completed: Raiser RPG Framework for Ren'Py
- Github: paktek123
- Contact:
Re: RPG Overworld Engine
Great work!! This is awesome!
- Mole-chan
- Veteran
- Posts: 333
- Joined: Thu Aug 27, 2009 12:46 am
- Completed: DUAEL, Escape from Puzzlegate
- Projects: A Bird with Gold-Mended Wings
- Deviantart: mole-chan
- Skype: mole-chan
- itch: moleworks
- Contact:
Re: RPG Overworld Engine
Glad it worked, sorry I was so slow to reply! I didn't see this. But either way, I'm very glad you eventually got it to work. Wish you luck using the engine c:Mayche wrote:Well now it does work i updated renpy and it works now thank you for the replies^^
Thank you~!paktek123 wrote:Great work!! This is awesome!
- CalixtheGreat
- Regular
- Posts: 72
- Joined: Thu Jun 08, 2017 12:00 am
- Projects: Zephyr Breeze Investigations
- itch: calixthegreat
- Location: Philippines
- Contact:
- Mole-chan
- Veteran
- Posts: 333
- Joined: Thu Aug 27, 2009 12:46 am
- Completed: DUAEL, Escape from Puzzlegate
- Projects: A Bird with Gold-Mended Wings
- Deviantart: mole-chan
- Skype: mole-chan
- itch: moleworks
- Contact:
Re: RPG Overworld Engine
It should be, yes! The engine was made with a custom displayable on a very recent version of Ren'py. So any version capable of producing an android build should be able to utilize it.CalixtheGreat wrote: ↑Fri Feb 02, 2018 12:42 am Is it possible to use this and build a game for Android?
- CalixtheGreat
- Regular
- Posts: 72
- Joined: Thu Jun 08, 2017 12:00 am
- Projects: Zephyr Breeze Investigations
- itch: calixthegreat
- Location: Philippines
- Contact:
Re: RPG Overworld Engine
Sorry if this is a dumb question, but how can i make a screen overlay for arrow keys that allows the player to walk then another button to interact?Mole-chan wrote: ↑Fri Feb 02, 2018 2:52 pmIt should be, yes! The engine was made with a custom displayable on a very recent version of Ren'py. So any version capable of producing an android build should be able to utilize it.CalixtheGreat wrote: ↑Fri Feb 02, 2018 12:42 am Is it possible to use this and build a game for Android?
As you can see, the rpg overworld engine's example code is for PC. But it doesn't work on android since the only way to move the player is by pressing keys from keyboard.
Sorry for if my english is not that good. Hahhaa
- Mole-chan
- Veteran
- Posts: 333
- Joined: Thu Aug 27, 2009 12:46 am
- Completed: DUAEL, Escape from Puzzlegate
- Projects: A Bird with Gold-Mended Wings
- Deviantart: mole-chan
- Skype: mole-chan
- itch: moleworks
- Contact:
Re: RPG Overworld Engine
Don't worry, it's not a dumb question, and your english is fine. :3CalixtheGreat wrote: ↑Fri Feb 09, 2018 2:06 amSorry if this is a dumb question, but how can i make a screen overlay for arrow keys that allows the player to walk then another button to interact?Mole-chan wrote: ↑Fri Feb 02, 2018 2:52 pmIt should be, yes! The engine was made with a custom displayable on a very recent version of Ren'py. So any version capable of producing an android build should be able to utilize it.CalixtheGreat wrote: ↑Fri Feb 02, 2018 12:42 am Is it possible to use this and build a game for Android?
As you can see, the rpg overworld engine's example code is for PC. But it doesn't work on android since the only way to move the player is by pressing keys from keyboard.
Sorry for if my english is not that good. Hahhaa
Yes, this code is very PC oriented, and I never got around to making it more mobile friendly. There is a swipe based control system buried in there, but it's probably not ideal.
For a button overlay, you'd probably blit some buttons to a set position, and have the controls assigned to clicking their hitbox instead of hitting the WASD keys. Just add something like this to the code underneath "if (ev.type == pygame.MOUSEBUTTONDOWN)":
Code: Select all
pos = pygame.mouse.get_pos() #get position of mouse
off = self.panMap() #get offset of the child
pos2 = ((pos[0] - off[0]),(pos[1] - off[1])) #adjust for offset, so we're getting reasonably close coordinates
if not self.player.caught and not self.talking:
if upButton.rect.collidepoint(pos2):
self.player.facing, self.player.up = 'up', True
self.player.walking = True
if rightButton.rect.collidepoint(pos2):
self.player.facing, self.player.right = 'right', True
self.player.walking = True
if leftButton.rect.collidepoint(pos2):
self.player.facing, self.player.left = 'left', True
self.player.walking = True
if downButton.rect.collidepoint(pos2):
self.player.facing, self.player.down = 'down', True
self.player.walking = True
if interactButton.rect.collidepoint(pos2) and not self.talking and not self.goTo:
for vil in self.sceneryList:
self.talk(vil)
Keep in mind you'll have to define all these buttons beforehand.
And I could swear there was a way to determine what platform the build is for, that you could check against for an if/or clause. That way this is only displayed when appropriate. But it's been years and I can't seem to find it. If you have any luck with that, I'd highly encourage using it.
Hope this helps!
- Pomeranian
- Regular
- Posts: 33
- Joined: Wed Oct 12, 2016 6:52 pm
- Contact:
Re: RPG Overworld Engine
Would it be possible to have a pre-rendered background that the player could walk on, that scrolls with the player? The tiles would still be in use on a higher layer for things like interactable objects, npcs etc. I'm thinking something akin to parallax mapping in rpg maker, if you're familiar with it.
- Mole-chan
- Veteran
- Posts: 333
- Joined: Thu Aug 27, 2009 12:46 am
- Completed: DUAEL, Escape from Puzzlegate
- Projects: A Bird with Gold-Mended Wings
- Deviantart: mole-chan
- Skype: mole-chan
- itch: moleworks
- Contact:
Re: RPG Overworld Engine
IIRC, that's actually the system that the engine was using when released. I was planning to upgrade to a proper tile based system for everything, not just interactable objects, but never quite got to it. So, yes, a parallax system is very much possible.Pomeranian wrote: ↑Thu Mar 29, 2018 12:01 pm Would it be possible to have a pre-rendered background that the player could walk on, that scrolls with the player? The tiles would still be in use on a higher layer for things like interactable objects, npcs etc. I'm thinking something akin to parallax mapping in rpg maker, if you're familiar with it.
- Imperf3kt
- Lemma-Class Veteran
- Posts: 3794
- Joined: Mon Dec 14, 2015 5:05 am
- itch: Imperf3kt
- Location: Your monitor
- Contact:
Re: RPG Overworld Engine
Mole-chan wrote: ↑Fri Feb 09, 2018 3:15 pm And I could swear there was a way to determine what platform the build is for, that you could check against for an if/or clause. That way this is only displayed when appropriate. But it's been years and I can't seem to find it. If you have any luck with that, I'd highly encourage using it.
Hope this helps!
Code: Select all
if not renpy.variant("android"):
#your code
else:
#PC code
Warning: May contain trace amounts of gratuitous plot.
pro·gram·mer (noun) An organism capable of converting caffeine into code.
Current project: GGD Mentor
Twitter
pro·gram·mer (noun) An organism capable of converting caffeine into code.
Current project: GGD Mentor
- Mole-chan
- Veteran
- Posts: 333
- Joined: Thu Aug 27, 2009 12:46 am
- Completed: DUAEL, Escape from Puzzlegate
- Projects: A Bird with Gold-Mended Wings
- Deviantart: mole-chan
- Skype: mole-chan
- itch: moleworks
- Contact:
Re: RPG Overworld Engine
Ah yes, that's it! Thank youImperf3kt wrote: ↑Tue Apr 03, 2018 4:30 amMole-chan wrote: ↑Fri Feb 09, 2018 3:15 pm And I could swear there was a way to determine what platform the build is for, that you could check against for an if/or clause. That way this is only displayed when appropriate. But it's been years and I can't seem to find it. If you have any luck with that, I'd highly encourage using it.
Hope this helps!I'd suggest trying "mobile" instead of "android" first to encompass other touch platforms.Code: Select all
if not renpy.variant("android"): #your code else: #PC code
Who is online
Users browsing this forum: No registered users