Posts by Kevsoft

by Kevsoft
18 Oct 2015, 13:08
Forum: LunaLua - Extension Framework
Topic: LunaLua Offical Thread
Replies: 180
Views: 15654

Re: LunaLua Offical Thread

LunaLua v7.2.0 has it's features already in, but there are some bugs which has to be cleaned out before the release.
by Kevsoft
18 Oct 2015, 12:36
Forum: Introductions
Topic: K-leb Here
Replies: 8
Views: 344

Re: K-leb Here

Welcome K-leb!

I wish you good luck with your video game creator career. If you have some coding skills you might want to try out Unity :P.
by Kevsoft
14 Oct 2015, 10:21
Forum: Troubleshooting
Topic: PGE Won't Detect Custom PNGs [Fixed]
Replies: 16
Views: 425

Re: PGE Won't Detect Custom PNGs [Fixed]

Digging in the commit which Wohlstand posted, the code checks first for a gif and then for the PNG. It should be the other way round, as the png overrides the gif and not the other way around.
by Kevsoft
10 Oct 2015, 17:14
Forum: LunaLua - Extension Framework
Topic: LunaLua Offical Thread
Replies: 180
Views: 15654

Re: LunaLua Offical Thread

But you can test for control input BEFORE setting it to false.

Like:

Code: Select all

function onInputUpdate()

    if(player.upKeyPressing)then
        -- do stuff here
    end
   
    player.upKeyPressing = false
   
end
by Kevsoft
10 Oct 2015, 12:09
Forum: LunaLua - Extension Framework
Topic: LunaLua Offical Thread
Replies: 180
Views: 15654

Re: LunaLua Offical Thread

Well you can do that:

Code: Select all

function onInputUpdate()

    -- you code to handle keys --
 
    player.upKeyPressing = false
    -- ... --
end


So first you want to handle the keys and at the end you want to set them to false (At least I did it for my API once)
by Kevsoft
9 Oct 2015, 23:35
Forum: LunaLua - Extension Framework
Topic: LunaLua Offical Thread
Replies: 180
Views: 15654

Re: LunaLua Offical Thread

Hey there!

So this looks pretty neat what you crafted here :). If you want to deactivate the player input then you have use onInputUpdate() and set player.runKeyPressing (or other key values) to false.
by Kevsoft
3 Oct 2015, 7:51
Forum: LunaLua - Extension Framework
Topic: Does the Player class work in the world map?
Replies: 3
Views: 222

Re: Does the Player class work in the world map?

Yea, this field is still only in the dev-version.
by Kevsoft
2 Oct 2015, 19:16
Forum: LunaLua - Extension Framework
Topic: Does the Player class work in the world map?
Replies: 3
Views: 222

Re: Does the Player class work in the world map?

Since LunaLua v0.7 it is possible:
PGE Wiki wrote:Static Player Functions (Overworld and level)
by Kevsoft
25 Sep 2015, 21:35
Forum: LunaLua - Extension Framework
Topic: drawImage Render Order?
Replies: 4
Views: 285

Re: drawImage Render Order?

Will have a look into it.
by Kevsoft
23 Sep 2015, 7:47
Forum: LunaLua - Extension Framework
Topic: Accessing Level Filename (not Level Title) on World Map
Replies: 7
Views: 328

Re: Accessing Level Filename (not Level Title) on World Map

Nope, it was my fault:

Code: Select all

levelTitle = world.levelTitle

to

Code: Select all

levelTitle = world.levelTitle.str
by Kevsoft
22 Sep 2015, 7:28
Forum: Troubleshooting
Topic: Help with testing
Replies: 2
Views: 201

Re: Help with testing

I just want to remind you, that the engine is still very early alpha-stage, so things like this can happen.
by Kevsoft
21 Sep 2015, 21:11
Forum: LunaLua - Extension Framework
Topic: Accessing Level Filename (not Level Title) on World Map
Replies: 7
Views: 328

Re: Accessing Level Filename (not Level Title) on World Map

Code: Select all

local levelTitle = world.levelTitle
if(levelTitle)then
  local levelObj = Level.getByName(levelTitle)
  if(levelObj)then
    local filename = levelObj.filename
  end
end

(would recommend to write an own function for this.
by Kevsoft
19 Sep 2015, 19:31
Forum: LunaLua - Extension Framework
Topic: Accessing Level Filename (not Level Title) on World Map
Replies: 7
Views: 328

Re: Accessing Level Filename (not Level Title) on World Map

So with the new version you should now have access to the level filename.

But I did change some fields in the Level class:
"Level.levelTitle" --> "Level.title" and it is now of type string instead of a VBStr object.
by Kevsoft
19 Sep 2015, 19:29
Forum: LunaLua - Extension Framework
Topic: LunaLua Offical Thread
Replies: 180
Views: 15654

Re: LunaLua Offical Thread

LunaLua v0.7.1.1 is out with following changes: * Added comparing operator for some LunaLua classes. * Added PlayerSettings-Class * Added PNG support for custom level items (i.e. npc-1.png) * Fixed screenshot-function (With changes: PNG-Format and filename is now date + time) * Added experimental gi...
by Kevsoft
19 Sep 2015, 12:18
Forum: WohlSoft.ru
Topic: An Alternative Design to The Main Webpage
Replies: 9
Views: 521

Re: An Alternative Design to The Main Webpage

A good mobile/desktop cross platform framework is bootstrap. But there are plenty more frameworks out there.
by Kevsoft
19 Sep 2015, 12:17
Forum: WohlSoft.ru
Topic: Very important Grammar/spelling changes
Replies: 4
Views: 357

Re: Very important Grammar/spelling changes

Actually you're right: :cry: :cry :

Should be fixed now.
by Kevsoft
19 Sep 2015, 12:00
Forum: LunaLua - Extension Framework
Topic: How Do I Properly Use the New placeSprite function?
Replies: 3
Views: 231

Re: How Do I Properly Use the New placeSprite function?

EDIT: The new function doesn't work in the world map, does it? I'm still getting an error. This is what the error says: ... Did you use the Graphics.* namespace? Also please be sure that the graphic has been loaded. If you have your image somewhere else than the custom folder then use Misc.resolveF...
by Kevsoft
17 Sep 2015, 7:31
Forum: LunaLua - Extension Framework
Topic: How Do I Properly Use the New placeSprite function?
Replies: 3
Views: 231

Re: How Do I Properly Use the New placeSprite function?

Code: Select all

function onLoad()
   Graphics.activateOverworldHud(WHUD_NONE)
   world_frame = Graphics.loadImage("../HUD/world_frame.png")
   Graphics.placeSprite(1, world_frame, 0, 0)
end
by Kevsoft
13 Sep 2015, 0:02
Forum: WohlSoft.ru
Topic: did my posts disappear?
Replies: 4
Views: 304

Re: did my posts disappear?

Forum games posts are not indexed and do not add to the post count.
by Kevsoft
12 Sep 2015, 10:19
Forum: LunaLua - Extension Framework
Topic: Accessing Level Filename (not Level Title) on World Map
Replies: 7
Views: 328

Re: Accessing Level Filename (not Level Title) on World Map

Well there is the "Level"-Class (only for the overworld), which hasn't been documented yet but is already free to use: https://github.com/Wohlhabend-Networks/LunaDLL/blob/master/LunaDll/LuaMain/LunaLuaMain.cpp#L667 So you could do: function onLoop() local firstLevel = Level.getByFilename(&...

Go to advanced search