RMRK is retiring.
Registration is disabled. The site will remain online, but eventually become a read-only archive. More information.

RMRK.net has nothing to do with Blockchains, Cryptocurrency or NFTs. We have been around since the early 2000s, but there is a new group using the RMRK name that deals with those things. We have nothing to do with them.
NFTs are a scam, and if somebody is trying to persuade you to buy or invest in crypto/blockchain/NFT content, please turn them down and save your money. See this video for more information.
Move By Clicking

0 Members and 1 Guest are viewing this topic.

*******
Rep:
Level 90
Returned from the dead.
I get the same error... well... not error exactly... the arrow keys work fine... but when I click, nothing happens :-\

[EDIT]
Never mind...
@mexneto - you need to click hard
« Last Edit: May 08, 2007, 05:36:32 PM by Rune »
Sincerely,
Your conscience.

*
Crew Slut
Rep:
Level 93
You'll love it!
For taking a crack at the RMRK Wiki
Ok! I'll try clicking harder!  :lol:


EDIT: It works, but not too well...
« Last Edit: May 08, 2007, 06:57:51 PM by Mexneto »

**
Rep:
Level 87
ya but it stil has a problem the couser is there but when i click a spot my charecter will not go there it will go some were else. please help.



*
Crew Slut
Rep:
Level 93
You'll love it!
For taking a crack at the RMRK Wiki
ya but it stil has a problem the couser is there but when i click a spot my charecter will not go there it will go some were else. please help.

Yeah, same thing happened to me...

**
Rep:
Level 87
so then what do i do?



*
Crew Slut
Rep:
Level 93
You'll love it!
For taking a crack at the RMRK Wiki
so then what do i do?
I don't know, I don't use the script.

*
Meet me in the middle
Rep:
Level 89
or left of the dial.
For frequently finding and reporting spam and spam botsSecret Santa 2012 Participant
Yarr, this script be fucked up.  :-\

*
Full Metal Mod - He will pillage your women!
Rep:
Level 93
The RGSS Dude
Yarr, this script be fucked up.  :-\

Well thank you for saying that. It's not the script. :-\

Let me ask all of you who are getting errors a question :

Are you moving the game window around?
"The wonderful thing about Tiggers
Is Tiggers are wonderful things
Their tops are made out of rubber
Their bottoms are made out of springs

They’re bouncy, trouncy, flouncy, pouncy
Fun, fun, fun, fun, fun!
But the most wonderful thing about Tiggers
Is I’m the only one, I’m the only one."

*
Crew Slut
Rep:
Level 93
You'll love it!
For taking a crack at the RMRK Wiki
Naah, same thing happened to me.

No error messages, but when I would click, I would have to click hard, and long, and it wouldn't go in the right direction.

*
Full Metal Mod - He will pillage your women!
Rep:
Level 93
The RGSS Dude
What operating system are you using?
"The wonderful thing about Tiggers
Is Tiggers are wonderful things
Their tops are made out of rubber
Their bottoms are made out of springs

They’re bouncy, trouncy, flouncy, pouncy
Fun, fun, fun, fun, fun!
But the most wonderful thing about Tiggers
Is I’m the only one, I’m the only one."

*
Crew Slut
Rep:
Level 93
You'll love it!
For taking a crack at the RMRK Wiki
Windows XP.

I can try on Ubuntu later, though.

*
Meet me in the middle
Rep:
Level 89
or left of the dial.
For frequently finding and reporting spam and spam botsSecret Santa 2012 Participant
Yarr, this script be fucked up.  :-\

Well thank you for saying that. It's not the script. :-\

Let me ask all of you who are getting errors a question :

Are you moving the game window around?
Maybe I was a little to blunt...sorry.

**
Rep:
Level 86
I know this thread hasn't been used in a lil while, but, I have some problems with the code from this specific place so..... I pasted the codes above Main, and go to test it out, and I get an error saying "Syntax error in Mouse_Coordinates: Line 38"  so, I look at the script, and line 38 there is nothing, its just a blank line at the end of the script, so I delete it, thinking, if the game doesn't like it, and I don't need it, it's gone,
but then I get the same error message only this time its line 37, which was
"#=========================================="
so, again I figured, not really a neccisarry line, its just there to help organize, so I erased that as well, only to get....
yet another error message for line... you guessed it, 36! But, line 36 is nessicary, because its one of the  "end" codes, and *shrugs* well, I don't know. I haven't been able to even test it out and see if I would have the same problems a few other people had, or whole new ones, or.... so one and so forth.  Any help, or advice would be appreciated, thanks!

"Keep smiling, it makes people wonder what you're up to."

OK, so what's the speed of dark?
What happens if you get scared half to death twice?

Since there's a duck-billed platapus, is there just a plain platapus? If so... what does that look like?

*******
Rep:
Level 90
Returned from the dead.
I understand you need help, and i'm not really the right person to say this, but... try not to necro-post, PM the script 'author' next time if there's a big difference in dates ;)

But... since you've already posted, never mind here :D
Sincerely,
Your conscience.

*
Rep:
Level 97
2014 Most Unsung Member2014 Best RPG Maker User - Engine2013 Best RPG Maker User (Scripting)2012 Best Member2012 Best RPG Maker User (Scripting)2012 Favorite Staff Member2012 Most Mature MemberSecret Santa 2012 ParticipantProject of the Month winner for July 20092011 Best Veteran2011 Favourite Staff Member2011 Most Mature Member2011 Best RPG Maker User (Scripting)2011 Best Use of Avatar and Signature Space2010 Most Mature Member2010 Favourite Staff Member
Nah, for topics in databases and questions with scripts, you are allowed to necro post for help or congratulations, etc...


In any case, your problem comes from not copying the entire script. I suspect you missed the last line of the script, which says end.



*******
Rep:
Level 90
Returned from the dead.
Nah, for topics in databases and questions with scripts, you are allowed to necro post for help or congratulations, etc...
-.-

Meh, at least you know for outside :-\
Sincerely,
Your conscience.

***
Rep:
Level 88
Hi, I got an error :
Script :: Scene_Map_audition line8:NameError Occured.
uninitialized constant Scene_Map :: Kboard


How can this be fixed please?

*
Full Metal Mod - He will pillage your women!
Rep:
Level 93
The RGSS Dude
Did you place all of the additions directly above Main? Including the Scene_Map addition?

B/c if you did, then I don't understand why you're getting that error.

If you look at the top of the Scene_Map addition, you'll see this

Code: [Select]
class Scene_Map
  include? Kboard

the

Code: [Select]
  include? Kboard

part makes sure that the script knows what I'm talking about when I say Kboard, and it should be able to use it.

Maybe if you put the scripts into the script editor out of order?
"The wonderful thing about Tiggers
Is Tiggers are wonderful things
Their tops are made out of rubber
Their bottoms are made out of springs

They’re bouncy, trouncy, flouncy, pouncy
Fun, fun, fun, fun, fun!
But the most wonderful thing about Tiggers
Is I’m the only one, I’m the only one."

*
Rep: +0/-0Level 83
Wait a minute...Yup, still awesome.

Every time I put it in the script(And I put it in exact order and everthing) I play the game and try to click move and it freezes and says script hanging? could you tell me what that is a give me a solution to my problem please?

*
Full Metal Mod - He will pillage your women!
Rep:
Level 93
The RGSS Dude
It's entirely possible that some computer security stuff is screwing with the script's ability to read user input. It probably thinks it's a keylogger or something lol. To be honest, sometimes scripts just don't work for some people. I'm not entirely sure what the reason is though.
"The wonderful thing about Tiggers
Is Tiggers are wonderful things
Their tops are made out of rubber
Their bottoms are made out of springs

They’re bouncy, trouncy, flouncy, pouncy
Fun, fun, fun, fun, fun!
But the most wonderful thing about Tiggers
Is I’m the only one, I’m the only one."

***
3==D This is my bellend.
Rep:
Level 83
i find problems with it
no

By Kraft

********
Resource Artist
Rep:
Level 94
\\\\\
Project of the Month winner for June 2009
post the fucking error. we can't read your mind.

**
Rep: +0/-0Level 83
ok
it works
but it wont work with someone who will have another screen.
and when i move the screen the rows and columns will change and it will freak out.
I guess the elements are all mine ! -> Working on Element Island < -

**
Rep:
Level 82
hmm, path finder, i have 1 A* path finder, for both 4 & 8 direction, simple but faster than one by near

Code: [Select]
#===============================================================================
# A* Path Finding
# credits: ngoa ho
# http://www.ngoaho.net- ngoaho91@yahoo.com.vn
#===============================================================================
class Path_Finding
  def look_around
    @open_list = []
    for d in [2,4,6,8,1,3,7,9]
      @open_list.push(d) if $game_map.passable?(@curent_node[0],@curent_node[1],d)
    end
    check_black_list
  end
  def go_back_a_node
    @black_list.push(@curent_node)
    @move_list.delete_at(-1)
    @curent_node = @move_list[-1]
  end
  def get_range(dir)
    case dir
    when 1,2,3
      node_y = @curent_node[1] + 1
    when 7,8,9
      node_y = @curent_node[1] - 1
    else
      node_y = @curent_node[1]
    end
    case dir
    when 1,4,7
      node_x = @curent_node[0] - 1
    when 3,6,9
      node_x = @curent_node[0] + 1
    else
      node_x = @curent_node[0]
    end
    x = (@goal_node[0] - node_x).abs
    y = (@goal_node[1] - node_y).abs
    return Math.sqrt(x**2+y**2)
  end
  def check_black_list
    test_node = @curent_node
    for i in 0..@open_list.size - 1
      d = @open_list[i]
      case d
      when 1,2,3
        test_node[1] += 1
      when 7,8,9
        test_node[1] -= 1
      end
      case d
      when 1,4,7
        test_node[0] -= 1
      when 3,6,9
        test_node[0] += 1
      end
      @open_list.delete_at(i) if @black_list.include?(test_node)
    end
  end
  def get_best_node
    min = -1
    best_node = nil
    for i in 0..@open_list.size - 1
      n = get_range(@open_list[i])
      if min == -1
        min = n
        best_node = @open_list[i]
      else
        if n < min
          min = n
          best_node = @open_list[i]
        end
      end
    end
    case best_node
    when 1,2,3
      @curent_node[1] += 1
    when 7,8,9
      @curent_node[1] -= 1
    end
    case best_node
    when 1,4,7
      @curent_node[0] -= 1
    when 3,6,9
      @curent_node[0] += 1
    end
    return best_node
  end
  def find_path(start,goal)
    return [] if start == goal
    # init array
    @start_node = start
    @curent_node = start
    @goal_node = goal
    @black_list = []
    @move_list = []
    # time limit, anti lag
    start_time = Time.now
    limit = $api.read_option("path_finding_time_limit").to_i
    begin
      loop do
        if Time.now - start_time >= limit
          break
        end
        look_around # check surrounding node
        while @open_list == [] and @curent_node != @start_node# if no possible path
          go_back_a_node
          look_around
        end
        @move_list.push(get_best_node)# go to node closet to goal node
        break if @curent_node == @goal_node# find goal node !
      end
    rescue Hangup
      break
    end
    return @move_list
  end
end
add it in main
Code: [Select]
$path_finding = Path_Finding.new
find path like this
Code: [Select]
@paths = $path_finding.find_path([now_x,now_y],[dest_x,dest_y])

** i can't write in unicode
« Last Edit: January 14, 2010, 02:29:37 PM by ngoaho »